\dontrun{
ggplot2::ggplot() +
layer_location_data(
data = system.file("shape/nc.shp", package = "sf")
)
ggsave_ext(
name = "counties",
label = "North Carolina",
device = "pdf",
paper = "letter"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.