This function produce different kinds of maps for the metis package. Each figure is accompanied with a csv table.
metis.mapsProcess( polygonTable = NULL, gridTable = NULL, dirOutputs = paste(getwd(), "/outputs", sep = ""), folderName = "", xRange = "All", labels = F, labelsSize = 1, subRegShape = NULL, subRegShpFolder = NULL, subRegShpFile = NULL, subRegCol = "subRegion", subRegType = NULL, nameAppend = "", legendOutsideSingle = T, legendOutsidePosition = NULL, legendPosition = NULL, legendFixedBreaks = 5, legendTitleSizeO = 1, legendTextSizeO = 0.6, legendTitleSizeI = 1, legendTextSizeI = 0.6, animateOn = T, fps = 1, extension = F, boundaryRegShape = NULL, boundaryRegShpFolder = NULL, boundaryRegShpFile = NULL, boundaryRegCol = "subRegion", boundaryRegionsSelect = NULL, cropToBoundary = F, extendedLabels = F, extendedFillColor = "grey75", extendedBGColor = "lightblue1", extendedHighLightColor = "cornsilk1", extendedLabelsColor = "grey30", extdendedLabelSize = 0.4, extendedShape = NULL, extendedShapeCol = "subRegion", expandPercent = 3, projX = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0", figWidth = 6, figHeight = 7, scenRef = NULL, scenDiff = NULL, scaleRange = NULL, scaleRangeDiffAbs = NULL, scaleRangeDiffPrcnt = NULL, xRef = NULL, xDiff = NULL, scaleRangeDiffxAbs = NULL, scaleRangeDiffxPrcnt = NULL, paramsSelect = "All", multifacetsOn = F, multiFacetCols = "multiFacetCol", multiFacetRows = "multiFacetRow", legendOutsideMulti = T, legendPositionMulti = NULL, legendTitleSizeMulti = NULL, legendTextSizeAnim = NULL, legendTextSizeMulti = NULL, refMultiA = NULL, refMultiB = NULL, chosenRefMeanYears = NULL, mapTitleSize = 0.5, facetBGColor = NA, facetLabelColor = "black", facetLabelSize = 1, facetLabelSizeMultiAB = 1, facetLabelBorderLwd = NA_real_, numeric2Cat_list = NULL, frameShow = F, pdfpng = "png", fillcolorNA = "gray", fillshowNA = NA, fillcolorNULL = "gray", legendSingleColorOn = NULL, legendSingleValue = NULL, legendSingleColor = "white", facetCols = 4, mapTitleOn = T, innerMargins = c(0, 0, 0, 0), legendDigitsOverride = NULL, classPalette = NULL, classPaletteDiff = "pal_div_BluRd" )
polygonTable | Default = NULL, |
---|---|
gridTable | Default = NULL, |
dirOutputs | Default = paste(getwd(),"/outputs",sep=""), |
folderName | Default ="folderNameDefault", |
xRange | Default ="All", |
labels | Default = F, |
labelsSize | Default = 1.2, |
subRegShape | Default = NULL, |
subRegShpFolder | Default = paste(getwd(),"/dataFiles/gis/admin_gadm36",sep=""), |
subRegShpFile | Default = paste("gadm36_1",sep=""), |
subRegCol | Default ="subRegion", |
subRegType | Default =NULL |
nameAppend | Default ="" |
legendOutsideSingle | Default =F, Single plots by default have legends inside. This can be moved out if wanted. |
legendOutsidePosition | Default = NULL, # "right","left","top","bottom", "center" |
legendPosition | Default = NULL, # c("RIGHT','top') - RIGHT LEFT TOP BOTTOM |
legendFixedBreaks | Default = "5", |
legendTitleSizeO | Default = 2, |
legendTextSizeO | Default =1, |
legendTitleSizeI | Default = 1, |
legendTextSizeI | Default =0.5, |
animateOn | Default = T, |
fps | Default = 1, |
extension | Default =F, |
boundaryRegShape | Default = NULL, |
boundaryRegShpFolder | Default= NULL . Suggested paste(getwd(),"/dataFiles/gis/naturalEarth",sep Default="") |
boundaryRegShpFile | Default=NULL . Suggested paste("ne_10m_admin_0_countries",sep Default=""), |
boundaryRegCol | Default=NULL. Suggested "NAME_0", |
boundaryRegionsSelect | Default = NULL, |
cropToBoundary | Default = T |
extendedLabels | Default = T |
extendedFillColor | Default ="grey75", |
extendedBGColor | Default ="lightblue1", |
extendedHighLightColor | Default ="cornsilk1", |
extendedLabelsColor | Default ="grey30", |
extdendedLabelSize | Default =0.7, |
extendedShape | Default =NULL, |
extendedShapeCol | Default =NULL, |
expandPercent | Default =3 |
projX | Default = projX="+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0" |
figWidth | Default =9 |
figHeight | Default =7 |
scenRef | Reference Scenario. Default = NULL |
scenDiff | Scenarios to Diff. Default = NULL |
scaleRange | Default NULL. A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min |
scaleRangeDiffAbs | Default =NULL, A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min |
scaleRangeDiffPrcnt | Default =NULL, A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min |
xRef | Reference year. Default = NULL |
xDiff | years to Diff. Default = NULL |
scaleRangeDiffxAbs | Default =NULL, A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min |
scaleRangeDiffxPrcnt | Default =NULL, A vector with c(max,min) (Applied to all params) or a dataframe with cols param, max, min |
paramsSelect | Default ="All" |
multifacetsOn | Default = F, |
multiFacetCols | Default ="multiFacetRow", |
multiFacetRows | Default ="multiFacetCol", |
legendOutsideMulti | Default = NULL, |
legendPositionMulti | Default = NULL, |
legendTitleSizeMulti | Default = NULL, |
legendTextSizeAnim | Default = NULL, |
legendTextSizeMulti | Default = NULL, |
refMultiA | Default = NULL , eg. "gfdl-esm2m" |
refMultiB | Default = NULL , eg. "rcp2p6" |
chosenRefMeanYears | Default=NULL |
mapTitleSize | Default=0.5 |
facetBGColor | Default = NA |
facetLabelColor | Default = Black |
facetLabelSize | Default =2.5 |
facetLabelSizeMultiAB | Default =1 |
facetLabelBorderLwd | Default=NA_real_, |
numeric2Cat_list | Default=NULL, |
frameShow | Default = T. Whether to plot frame around maps and facets. |
pdfpng | Save IO figures as pdf or png. Type=String. Options: 'pdf' or 'png'. Default = 'png' |
fillcolorNA | Default="gray", |
fillshowNA | Default=NA, |
fillcolorNULL | Default="gray" |
legendSingleColorOn | Default=F, |
legendSingleValue | Default =NULL, |
legendSingleColor | Default="white" |
facetCols | Default=4 |
mapTitleOn | Default=T |
innerMargins | Default =c(0,0,0,0) # bottom, left, top, right |
legendDigitsOverride | Default=NULL |
classPalette | Default = NULL |
classPaletteDiff | Default = "pal_div_BrGn" |
Returns the formatted data used to produce chart
A list with the gridTbl and shapeTbl used to plot the data if any.