theme_HSRC | R Documentation |
theme_HSRC
is a theme based on theme_minimal. No grid lines, only x and y axis.
Horizontal y-axis label
Dark grey rather than black for text elements
theme_HSRC( base_size = 18, base_family = "", base_line_size = base_size/170, base_rect_size = base_size/170 )
base_size |
base font size, given in pts. |
base_family |
base font family |
base_line_size |
base size for line elements |
base_rect_size |
base size for rect elements |
A plot with text (left) and logo (right)
library(ggplot2) pl_1 <- ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point() pl_1_no_legend <- ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point(show.legend = FALSE) pl_1 pl_1 + theme_HSRC() pl_1_no_legend pl_1_no_legend + theme_HSRC()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.