geom_places | R Documentation |
Identifies relevant census places and plots them.
geom_places(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = FALSE,
state = NULL,
show.legend = NA,
inherit.aes = TRUE,
...
)
stat_places(
mapping = NULL,
data = NULL,
geom = ggplot2::GeomSf,
position = "identity",
na.rm = FALSE,
state = NULL,
show.legend = NA,
inherit.aes = TRUE,
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer |
position |
Position adjustment |
na.rm |
if |
state |
state to use. Guesses based on overlap if not provided. |
show.legend |
Should this layer be included in the legends? |
inherit.aes |
If |
... |
Passed onto the underlying geoms. |
geom |
The geometric object to use display the data |
a ggproto
object
library(ggplot2)
data(oregon)
ggplot(oregon, aes(group = cd_2020)) +
geom_district() +
theme_map()
ggplot(oregon, aes(group = cd_2020)) +
geom_district() +
theme_map()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.