| theme_surveyframe | R Documentation |
A theme_classic()-based ggplot2 theme (visible axis lines, no floating
panel), verified against WCAG 2.2 contrast minimums: 4.5:1 for text,
3:1 for non-text graphical objects. Apply it to any ggplot object,
including the plots returned by run_analysis_plan() when
plots = TRUE.
theme_surveyframe(
base_size = 12,
base_family = "",
palette = c("web", "print")
)
base_size |
Numeric. Base font size in points. Defaults to 12. |
base_family |
Character. Base font family. Defaults to |
palette |
One of |
A ggplot2 theme object.
run_analysis_plan()
library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) +
geom_point(colour = "#0E9694") +
theme_surveyframe()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.