Theme for graphs with horizontal gridlines.
theme_h_gridlines(font_family = "", font_size_title = 11, font_size_body = 10)
Font family to use. Defaults to "".
Font size for the title text. Defaults to 11.
Font size for all text other than the title. Defaults to 10.
A ggplot theme.
# NOT RUN {
library(simplevis)
library(ggplot2)
ggplot() +
scale_x_continuous(breaks = seq(0, 10, 2), limits = c(0, 10), expand = c(0, 0)) +
scale_y_continuous(breaks = seq(0, 10, 2), limits = c(0, 10), expand = c(0, 0)) +
ggtitle("This is a title with a specified font family and size") +
theme_h_gridlines("Courier", 9, 7)
# }
Run the code above in your browser using DataLab