Description Usage Arguments Value
View source: R/metis.boundaries.R
This function takes a .csv file with gridded lat, long data and aggregates the data by spatial boundaries given different shapefiles.
1 2 3 4 5 6 7 8 9 10 11 12 13 | metis.boundaries(boundaryRegShape = NULL, boundaryRegShpFolder = NULL,
boundaryRegShpFile = NULL, boundaryRegCol = NULL,
boundaryRegionsSelect = NULL, subRegShape = NULL,
subRegShpFolder = NULL, subRegShpFile = NULL, subRegCol = NULL,
subRegionsSelect = NULL, subRegType = "subRegType",
dirOutputs = paste(getwd(), "/outputs", sep = ""), nameAppend = "",
expandPercent = 2, overlapShape = NULL, overlapShpFolder = NULL,
overlapShpFile = NULL, labelsSize = 1.2, fillcolorNA = NULL,
projX = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
extendedFillColor = "grey75", extendedBGColor = "lightblue1",
extendedHighLightColor = "cornsilk1", extendedLabelsColor = "grey30",
extdendedLabelSize = 0.7, extension = T, fillPalette = "Spectral",
cropSubShape2Bound = T, grids = NULL)
|
boundaryRegShape |
Default=NULL. Boundary region shape if already read into R. |
boundaryRegShpFolder |
Default= NULL. Folder containing boundary region shapefile. Suggested: paste(getwd(),"/dataFiles/gis/naturalEarth",sep Default=""), |
boundaryRegShpFile |
Default=NULL. Name of shapefile. Suggested: paste("ne_10m_admin_0_countries",sep Default=""), |
boundaryRegCol |
Default=NULL. Column name with region names. Suggested "NAME_0", |
boundaryRegionsSelect |
Default=NULL. The region to choose from the given shapefile. |
subRegShape |
Default=NULL. Sub-region shape if already read into R. |
subRegShpFolder |
Default=NULL. Folder containing boundary region shapefile. Suggested paste(getwd(),"/dataFiles/gis/naturalEarth",sep Default=""), |
subRegShpFile |
Default=NULL. Name of sub-region shapefile. Suggested paste("ne_10m_admin_1_states_provinces",sep Default=""), |
subRegCol |
Default= NULL. Suggested for states "name", |
subRegionsSelect |
Default=NULL. The region to choose from the given sub-region shapefile. |
subRegType |
Default="subRegType". Eg. "states", "basins" etc. |
dirOutputs |
Default=paste(getwd(),"/outputs",sep Default=""). Location for outputs. |
nameAppend |
Default="". |
expandPercent |
Default=2. Percentage to expand boundary region beyond chosen region. |
overlapShape |
Default = NULL. If boundary lines of another shapefile are desired specify the shape here. |
overlapShpFolder |
Default = NULL. For GCAM basins use paste(getwd(),"/dataFiles/gis/basin_gcam",sep=""). |
overlapShpFile |
Default = NULL. For GCAM basins use ="Global235_CLM_final_5arcmin_multipart" |
labelsSize |
Default =1.2. |
fillcolorNA |
Default =NULL. |
projX |
Default ="+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0". |
extendedFillColor |
Default = "grey75". |
extendedBGColor |
Default = "lightblue1". |
extendedHighLightColor |
Default = "cornsilk1". |
extendedLabelsColor |
Default = "grey30". |
extdendedLabelSize |
Default =0.7. |
extension |
Default = T |
fillPalette |
Default ="Spectral". |
cropSubShape2Bound |
Default = T. Set to False if subregion shape is larger than boundary, but desired fro extension. |
grids |
Default = NULL. Suggested is c(paste(getwd(),"/dataFiles/grids/emptyGrids/grid_025.csv",sep=""), paste(getwd(),"/dataFiles/grids/emptyGrids/grid_050.csv",sep="")) This may happen in the case of disputed boundaries. |
A table with data by polygon ID for each shapefile provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.