geom_places {ggredist} | R Documentation |
Emphasize Populated Regions of a Map with greyed out Places
Description
Identifies relevant census places and plots them.
Usage
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,
...
)
Arguments
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 |
Value
a ggproto
object
Examples
library(ggplot2)
data(oregon)
ggplot(oregon, aes(group = cd_2020)) +
geom_district() +
theme_map()
ggplot(oregon, aes(group = cd_2020)) +
geom_district() +
theme_map()
[Package ggredist version 0.0.2 Index]