makeMap {mosaic} | R Documentation |
Make a map with ggplot2
Description
makeMap
takes in two sources of data that refer to geographical
regions and merges them together. Depending on the arguments passed,
it returns this merged data or a ggplot object constructed with the data.
Usage
makeMap(
data = NULL,
map = NULL,
key = c(key.data, key.map),
key.data,
key.map,
tr.data = identity,
tr.map = identity,
plot = c("borders", "frame", "none")
)
Arguments
data |
A dataframe with regions as cases |
map |
An object that can be fortified to a dataframe (ex: a dataframe itself, or a SpatialPolygonsDataFrame) |
key |
The combination of |
key.data |
The column name in the |
key.map |
The column name in the |
tr.data |
A function of the transformation to be performed to
the |
tr.map |
A function of the transformation to be performed to
the |
plot |
The plot desired for the output. |