Nothing
Code
output_dir <- withr::local_tempdir()
if (!dir.exists(output_dir)) {
dir.create(output_dir)
}
a_plot <- RcensusPkg::plot_us_data(title = "A Default Mapping of US States",
output_dir = output_dir, delete_files = FALSE)
Code
output_dir <- withr::local_tempdir()
if (!dir.exists(output_dir)) {
dir.create(output_dir)
}
a_plot <- RcensusPkg::plot_us_data(df = RcensusPkg::vote2020, title = "US Presidential Vote 2020",
states_col = "State", value_col = "Party", output_dir = output_dir,
delete_files = FALSE, scale_breaks = c("R", "D"), scale_limits = c("R", "D"),
scale_values = c("red", "blue"), scale_labels = c("Republican", "Democrat"),
sf_color = "white")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.