Description Usage Arguments Value Author(s)
View source: R/plot_populations.R
Plots a data frame if that data frame has names indicated by the passed arguments stratum, Longitude, and Latitude. Otherwise it passes the object on to plot.default()
1 2 3 4 5 6 7 8 9 10 11 | plot_populations(
x,
stratum = "Population",
longitude = "Longitude",
latitude = "Latitude",
map.source = "google",
map.type = "terrain",
color = "black",
zoom = NA,
...
)
|
x |
An object of type |
stratum |
The stratum to plot (default='Population'). |
longitude |
Name of the column to be used as a decimal longitude |
latitude |
Name of the column to be used as decimal latitude |
map.source |
Where the map should be retrieved from. Common options include
|
map.type |
What kind of map to use. Current types include:
|
color |
The color of the markers to be plot. |
zoom |
The default zoom level when using google maps (default NA). If omitted the code will attempt to define the map by the bounding box defined by the coords |
... |
Ignored |
A ggplot object that will be plotted by default.
Rodney J. Dyer rjdyer@vcu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.