Description Usage Arguments Value
Plot SPEW region
1 2 3 | plot_region(coords_df, get_world_map = FALSE, f = 0.1,
region_colors = c("#999999", "#E69F00", "#56B4E9", "#009E73", "#F0E442",
"#0072B2", "#D55E00", "#CC79A7"))
|
coords_df |
data frame with "longitude", "latitude", and "region_id" columns |
get_world_map |
logical. Get an underlying map from ggmap. Default is TRUE |
f |
border size between 0 and 1. Default is .1. |
region_colors |
a string of colors to color the map. Default is from the colorblind friendly palette. |
a ggmap object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.