Description Usage Arguments Author(s) Examples
View source: R/geom_strata_label.R
This function takes a data.frame
of population data and
returns a geom_point()
layer for plotting. You can also
indicate shape and color attributes in the mapping (through aes
)
that will be carried through.
1 | geom_strata_label(mapping = NULL, data = NULL, ...)
|
mapping |
The aesthetic mapping, this MUST have values for x, y, and stratum. |
data |
The |
... |
Other parameters submitted to |
Rodney J. Dyer rjdyer@vcu.edu
1 2 3 4 5 6 7 8 9 10 11 | library(ggplot2)
data(arapat)
ggplot() +
geom_strata_label( aes(x=Longitude,
y=Latitude,
stratum=Population), data=arapat) +
coord_equal()
library(ggmap)
coords <- strata_coordinates( arapat )
map <- population_map( coords )
ggmap( map ) + geom_strata_label( data=arapat )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.