# Create a sample plot
plot <- makeme(data = ex_survey, dep = b_1:b_3)
# Get just the N range text
get_fig_title_suffix_from_ggplot(plot)
# Custom N prefix
get_fig_title_suffix_from_ggplot(plot, n_equals_string = "Sample size: ")
if (FALSE) {
# Generate with download links (saves files to disk)
get_fig_title_suffix_from_ggplot(plot, save = TRUE)
# Custom separator and link prefix
get_fig_title_suffix_from_ggplot(
plot,
save = TRUE,
sep = " | ",
link_prefix = "[Download PNG]("
)
}
Run the code above in your browser using DataLab