Skip to contents

Draws a rounded, card-like panel using elementalist. Border is rendered with clipping disabled so stroke width looks even at large radii.

Usage

theme_card(
  radius_panel = 30,
  panel_fill = NULL,
  panel_border_colour = "gray20",
  panel_border_linewidth = 0.5,
  base_size = 12,
  base_family = "Fuzzy Bubbles",
  round_plot = FALSE,
  radius_plot = 30,
  plot_bg_fill = NULL,
  plot_border_colour = NA,
  plot_border_linewidth = 0
)

Arguments

radius_panel

Corner radius in points for the panel

panel_fill

Fill color for the panel (defaults to package bg)

panel_border_colour

Panel border color

panel_border_linewidth

Panel border linewidth

base_size

Base font size

base_family

Base font family

round_plot

Logical. Round the outer plot background card

radius_plot

Corner radius in points for the plot background

plot_bg_fill

Fill color for the plot background. Use NA for transparent

plot_border_colour

Plot background border color

plot_border_linewidth

Plot background border linewidth

Value

A plain list of ggplot components to add with +

Details

Internally adds coord_cartesian(clip = "off"). If you later add a different coordinate system like coord_fixed() or coord_polar(), that replaces it.