Learn R Programming

ggblanket (version 11.1.0)

flex_mode_r: Flexible mode with right legend

Description

Flexible mode with right legend.

Usage

flex_mode_r(
  ...,
  base_size = 11,
  base_family = "",
  base_face = "plain",
  base_colour = "#121B24FF",
  plot_title_size = ggplot2::rel(1.1),
  plot_title_family = base_family,
  plot_title_face = "bold",
  plot_title_colour = base_colour,
  plot_subtitle_size = ggplot2::rel(1),
  plot_subtitle_family = base_family,
  plot_subtitle_face = "plain",
  plot_subtitle_colour = base_colour,
  plot_caption_size = ggplot2::rel(0.85),
  plot_caption_family = base_family,
  plot_caption_face = "plain",
  plot_caption_colour = colorspace::lighten(base_colour, 0.1),
  plot_caption_hjust = 0,
  axis_line_colour = "#121B24FF",
  axis_line_linewidth = 0.25,
  axis_ticks_colour = axis_line_colour,
  axis_ticks_linewidth = axis_line_linewidth,
  axis.ticks.length = grid::unit(base_size/3, "pt"),
  panel_grid_colour = "#F6F8FAFF",
  panel_grid_linewidth = 1.33,
  panel_background_fill = "#FFFFFFFF",
  plot_background_fill = "#FFFFFFFF",
  legend_axis_line_colour = plot_background_fill,
  legend_axis_line_linewidth = axis_line_linewidth,
  legend_background_fill = plot_background_fill,
  legend_key_fill = plot_background_fill,
  legend_ticks_colour = legend_axis_line_colour,
  legend_ticks_linewidth = legend_axis_line_linewidth,
  legend_ticks_length = ggplot2::rel(c(0.175, 0))
)

Value

A ggplot theme.

Arguments

...

Provided to force user argument naming etc.

base_size

The base size of the text theme element. Defaults to 11.

base_family

The base family of the text theme element. Defaults to "".

base_face

The base face of the text theme element. Defaults to "plain".

base_colour

The base colour of the text theme element.

plot_title_size

The size of the plot.title theme element.

plot_title_family

The family of the plot.title theme element.

plot_title_face

The face of the plot.title theme element.

plot_title_colour

The colour of the plot.title theme element.

plot_subtitle_size

The size of the plot.subtitle theme element.

plot_subtitle_family

The family of the plot.subtitle theme element.

plot_subtitle_face

The face of the plot.subtitle theme element.

plot_subtitle_colour

The colour of the plot.subtitle theme element.

plot_caption_size

The size of the plot.caption theme element.

plot_caption_family

The family of the plot.caption theme element.

plot_caption_face

The face of the plot.caption theme element.

plot_caption_colour

The colour of the plot.caption theme element.

plot_caption_hjust

The horizontal adjustment of the plot.caption theme element.

axis_line_colour

The colour of the axis.line theme element.

axis_line_linewidth

The linewidth of the axis.line theme element.

axis_ticks_colour

The colour of the axis.ticks theme element.

axis_ticks_linewidth

The linewidth of the axis.ticks theme element.

axis.ticks.length

The length of the axis.ticks.length.x theme element.

panel_grid_colour

The colour of the panel.grid theme element.

panel_grid_linewidth

The linewidth of the panel.grid theme element.

panel_background_fill

The fill (and colour) of the panel.background theme element.

plot_background_fill

The fill (and colour) of the plot.background theme element.

legend_axis_line_colour

The colour of the legend.axis.line theme element.

legend_axis_line_linewidth

The linewidth of the legend.axis.line theme element.

legend_background_fill

The fill (and colour) of the legend.background theme element.

legend_key_fill

The fill (and colour) of the legend.key theme element.

legend_ticks_colour

The colour of the legend.ticks theme element.

legend_ticks_linewidth

The linewidth of the legend.ticks theme element.

legend_ticks_length

The legend.ticks.length theme element.