theme_vmodern.Rd
A modern ggplot theme
theme_vmodern(
base_family = "",
size_preset = NULL,
bg_color = "grey98",
strip_bg_color = "#2c3e50",
grid_color = "grey90",
axis_line_width = 1,
show_ticks = TRUE,
x_text_angle = FALSE,
axis_title_size = 10,
axis_text_size = 7,
legend_title_size = 10,
legend_text_size = 8,
strip_text_size = 9,
title_size = 12,
...
)
Base font family.
One of "small", "medium", "large", "xlarge", or
"some number of x'slarge" indicating the default sizes for plot text and
titles. If NULL
, defaults to values specified explicitly by
axis_title_size
, axis_text_size
, legend_title_size
,
legend_text_size
, strip_text_size
, title_size
.
Color for plot background.
Color for strip background (for
ggplot2::facet_grid()
and ggplot2::facet_wrap()
).
Color of panel grid major axes or NULL
if want no
major grid lines.
Width of x and y axes lines.
Logical; whether or not to show axes tick marks.
Logical; whether or not to angle x text at 45 degrees.
Font size of axis title. Ignored if size_theme
not NULL
.
Font size of axis text. Ignored if size_theme
not NULL
.
Font size of legend title. Ignored if
size_theme
not NULL
.
Font size of legend text/key. Ignored if
size_theme
not NULL
.
Font size of strip text. Ignored if size_theme
not NULL
.
Font size of plot title. Ignored if size_theme
not NULL
.
Additional arguments to pass to ggplot2::theme()
A ggplot2::theme()
object.
require(ggplot2)
ggplot(iris) +
aes(x = Sepal.Length, y = Sepal.Width) +
geom_point() +
theme_vmodern()