theme_sf_light | R Documentation |
A minimal theme with light background inspired by — and adapted from — the occasional appearances of charts used by Apple within different contexts, e.g., Apple Health app, Screen Time on iOS and macOS.
theme_sf_light( font_family = "Inter", grid = TRUE, axis = TRUE, ticks = TRUE, size_class = NULL, font_size_class = "xSmall", element_size_class = "xSmall", offset_x_ticks = FALSE, offset_y_ticks = FALSE )
font_family |
Primary font family of the plot |
grid |
Panel grid ( |
axis |
Add x or y axes? |
ticks |
Ticks if |
size_class |
Resizes texts and elements based on one of the given size classes:
|
font_size_class |
Only resizes text based on one of the above size classes |
element_size_class |
Only resizes elements based on one of the above size classes |
offset_x_ticks |
Fancier x tick labels [Experimental] |
offset_y_ticks |
Fancier y tick labels [Experimental] |
Recommended color and fill scales to be used with:
scale_colour_ios_light
scale_fill_ios_light
scale_colour_macos_light
scale_fill_macos_light
## Not run: library(ggplot2) ggplot(mpg, aes(x = displ, y = hwy, colour = class)) + geom_point() + labs(x = "Displacement", y ="MPG", color = "Type of Car", title = "Fuel Economy", subtitle = "Fuel economy declines as engines get bigger", caption = "Fuel economy data from 1999 to 2008.") + theme_sf_light() + scale_colour_ios_light() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.