Apply a smart tmtyro theme
Usage
theme_tmtyro(
minor = FALSE,
grid_x = NULL,
grid_y = NULL,
base_theme = ggplot2::theme_minimal,
...
)Arguments
- minor
Whether to show minor grid lines
- grid_x
Whether to show grid lines on the X-axis. When
NULL, this will be determined by the data being visualized.- grid_y
Whether to show grid lines on the Y-axis. When
NULL, this will be determined by the data being visualized.- base_theme
The base ggplot2 theme used as a starting point
- ...
Additional arguments passed to base theme
Examples
if (FALSE) {
library(ggplot2)
mtcars |>
ggplot(aes(disp, hp)) +
geom_point() +
theme_tmtyro()
mtcars |>
ggplot(aes(hp, factor(cyl))) +
geom_point() +
theme_tmtyro()
mtcars |>
ggplot(aes(factor(cyl), hp)) +
geom_point() +
theme_tmtyro()
}
