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.
Usage
theme_surveyframe(
base_size = 12,
base_family = "",
palette = c("web", "print")
)Arguments
- base_size
Numeric. Base font size in points. Defaults to 12.
- base_family
Character. Base font family. Defaults to
""(the device default).- palette
One of
"web"(brand colours, for on-screen use) or"print"(black/grey/white only, for journal-ready figures). Seesframe_brand()for the verified contrast ratios behind each.
See also
Other Chart functions:
plot.sframe_analysis_results(),
sframe_plot_cooccurrence(),
sframe_plot_cooccurrence_network(),
sframe_plot_correlation_matrix(),
sframe_plot_decision_ranking(),
sframe_plot_dematel_influence(),
sframe_plot_descriptives(),
sframe_plot_efa_loadings(),
sframe_plot_efa_scree(),
sframe_plot_group_comparison(),
sframe_plot_likert_matrix(),
sframe_plot_likert_scale(),
sframe_plot_missingness(),
sframe_plot_ngram_frequency(),
sframe_plot_paired_comparison(),
sframe_plot_quality(),
sframe_plot_regression_diagnostics(),
sframe_plot_reliability(),
sframe_plot_sentiment(),
sframe_plot_term_frequency(),
sframe_plot_topics(),
sframe_plot_validity(),
sframe_plot_variable_distribution(),
sframe_plots
Examples
library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) +
geom_point(colour = "#0E9694") +
theme_surveyframe()