theme_kim | R Documentation |
A custom ggplot theme
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
)
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, |
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) |
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()
prep(ggplot2)
ggplot2::ggplot(mtcars, aes(x = cyl, y = mpg)) + geom_point() + theme_kim()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.