theme_kim {exploratory}R Documentation

Theme Kim

Description

A custom ggplot theme

Usage

theme_kim(
  legend_position = "none",
  base_size = 20,
  axis_tick_font_size = 20,
  axis_title_font_size = 24,
  y_axis_title_vjust = 0.85,
  axis_title_margin_size = 24,
  cap_axis_lines = TRUE
)

Arguments

legend_position

position of the legend (default = "none")

base_size

base font size

axis_tick_font_size

font size for axis tick marks

axis_title_font_size

font size for axis title

y_axis_title_vjust

position of the y axis title (default = 0.85). If default is used, y_axis_title_vjust = 0.85, the y axis title will be positioned at 85% of the way up from the bottom of the plot.

axis_title_margin_size

size of the margin between axis title and the axis line

cap_axis_lines

logical. Should the axis lines be capped at the outer tick marks? (default = TRUE)

Value

a ggplot object; there will be no meaningful output from this function. Instead, this function should be used with another ggplot object, e.g., ggplot(mtcars , aes(x = disp, y = mpg)) + theme_kim()

Examples


prep(ggplot2)
ggplot2::ggplot(mtcars, aes(x = cyl, y = mpg)) + geom_point() + theme_kim()


[Package exploratory version 0.3.31 Index]