Skip to contents

Standard ggplot theme

Usage

theme_std(
  axis_opts = plot_axis_opts(),
  legend_opts = list(pos = "bottom", dir = "horizontal"),
  griddisplay = "N"
)

Arguments

axis_opts

A list of axis specific options retrieved from plot_axis_opts().

legend_opts

Legend styling option, a list containing pos(position) and dir (direction).

griddisplay

Values "Y"/"N" to display grid lines

Value

Standard ggplot theme for basic figures using axis and legend options

Examples

data(adsl)
library(ggplot2)
ggplot(
  adsl,
  aes(
    x = .data[["RACE"]], y = .data[["AGE"]],
    color = .data[["SEX"]]
  )
) +
  geom_point() +
  theme_std()