This function produce different kinds of maps for the rmap package. Each figure is accompanied with a csv table.
map(
data = NULL,
region = NULL,
fillColumn = NULL,
shape = NULL,
fileName = "map",
save = T,
theme = NULL,
show = T,
folder = paste(getwd(), "/outputs", sep = ""),
labels = F,
labelCol = NULL,
labelRepel = 0,
labelColor = "black",
labelSize = 2,
labelAlpha = 1,
labelFill = NA,
labelBorderSize = NA,
shapeFolder = NULL,
shapeFile = NULL,
subRegion = "subRegion",
value = "value",
x = NULL,
class = "class",
scenario = "scenario",
nameAppend = "",
legendTitle = NULL,
legendType = "kmeans",
legendBreaksn = 5,
legendFixedBreaks = NULL,
animate = T,
fps = 1,
crop = T,
crop_to_underLayer = F,
crop_to_overLayer = F,
fill = NULL,
color = "grey40",
lwd = 0.1,
underLayer = NULL,
underLayerColor = "gray40",
underLayerFill = "gray90",
underLayerLwd = 0.1,
underLayerAlpha = 1,
underLayerLabels = F,
underLayerLabelCol = NULL,
overLayerLabelCol = NULL,
overLayerLabels = F,
overLayer = NULL,
overLayerColor = "gray40",
overLayerFill = NA,
overLayerLwd = 0.2,
overLayerAlpha = 0,
zoom = 0,
zoomx = NULL,
zoomy = NULL,
asp = 1.2,
projX = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
width = 7,
height = 8,
scenRef = NULL,
scenDiff = NULL,
scaleRange = NULL,
scaleRangeDiffAbs = NULL,
scaleRangeDiffPrcnt = NULL,
xRef = NULL,
xDiff = NULL,
scaleRangexDiffAbs = NULL,
scaleRangexDiffPrcnt = NULL,
col = NULL,
row = NULL,
title = NULL,
numeric2Cat_list = NULL,
pdfpng = "png",
legendDigitsOverride = NULL,
legendSingleColor = "white",
legendSingleValue = F,
palette = NULL,
paletteDiff = "pal_div_BluRd",
colorNA = "gray50",
showNA = F,
ncol = 3,
size = 16,
alpha = 1,
background = F,
transparent = T,
legendShow = T,
legendShowForce = F,
diffOnly = F,
forceFacets = F,
crs = "+proj=longlat +datum=WGS84 +no_defs"
)
Default = NULL,
Default = NULL. Set the boundary region for subRegion maps. Useful when multiple subRegions in different regions.
(Optional). Default = NULL. Only for direct map plotting.
Default = NULL, Cusotm shape can be provided as a SpatialPolygonDataFrame with features corresponding to subRegion columns in the data provided.
(Optional). Default = "map". Only for direct map plotting.
(Optional). Default = T. Only for direct map plotting.
Default = NULL,
Default = T. Print maps in console as they are processed.
Default = paste(getwd(),"/outputs",sep=""),
Default = F,
Default = NULL,
Default = 0,
Default = "black",
Default = 3
Default = 0.7,
Default = NA,
Default = NA
Default = paste(getwd(),"/dataFiles/gis/admin_gadm36",sep=""),
Default = paste("gadm36_1",sep=""),
Default ="subRegion",
Default = "value",
Default = NULL
Default = "class"
Default = "scenario"
Default =""
Default = NULL
Default ="kmeans", Options include c("pretty","kmeans","freescale","all")
Default = "5",
Default = NULL,
Default = T,
Default = 1,
Default = T. This crops the map to the extent of your data regions. If false will zoom out to the extent of the larget layer.
Default = F. Crop to the underLayer boundary provided.
Default = F. Crop to the overLayer boundary provided.
Default = NULL. Fill of polygon shapes. Same as palette.
Default = "grey40". Color of polygon lines.
Default = 0.1. Line width of polygon boundaries.
Default = NULL
Default = "gray40"
Default = "gray90"
Default = 0.5
Default = 1
Default = F
Default = NULL
Default = NULL
Default = F
Default = NULL
Default = "gray40"
Default = NA
Default = 0.5
Default = 0
Default =-1. Zoom into or out of map. Positive values zoom in and negative out.
Default = NULL. Zoom into or out of map along x. Positive values zoom in and negative out.
Default = NULL. Zoom into or out of map along y. Positive values zoom in and negative out.
Default = 1.2. Aspect ratio of lat and lon.
Default = projX="+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
Default =9
Default =7
Reference Scenario. Default = NULL
Scenarios to Diff. Default = NULL
Default NULL. A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min
Default =NULL, A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min
Default =NULL, A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min
Reference year. Default = NULL
years to Diff. Default = NULL
Default =NULL, A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min
Default =NULL, A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min
Default ="multiFacetRow",
Default ="multiFacetCol",
Default=NULL
Default=NULL,
Save IO figures as pdf or png. Type=String. Options: 'pdf' or 'png'. Default = 'png'
Default=NULL
Default="white"
Default=F. Change to True to get default single value or provide a numeric value.
Default = NULL
Default = "pal_div_BrGn"
Default = "gray50"
Default = F
Default = 3. Number of columns to wrap maps
Default = 12. Text size of plots.
Default = 1. Transparency of fill colors.
Default = F. Add background water color, border and default underlayer map.
Default = T. To make map background transparent for maps without backgrounds.
Default = T
Default = F. Force legend to show for maps without values.
Default = F. Only run diff plots and not individual scenarios.
Default = F. Used to force facet label for single scenario which is usually dropped.
Default = "+proj=longlat +datum=WGS84 +no_defs". A proj4 string from EPSG https://epsg.io/
Returns the formatted data used to produce chart
A list of maps