Description Usage Arguments Details Value Author(s) Examples
makeGROWmapData
takes a dataset with values and a GROW column merges them for use by makeGROWmap
.
Code is modified and extended from @jebyrnes package meowR https://github.com/jebyrnes/meowR.
1 2 3 | makeGROWmapData(newdata, fillColName, fillAlphaColName = NULL,
regionColName = type, type = "ECOREGION", realm = "Marine",
excludeNoDataAreas = T)
|
newdata |
dataset to be used |
fillColName |
name of the column with information to be used for a fill value |
fillAlphaColName |
Colname of column used to scale alpha level of fill |
regionColName |
data name of column with ecoregion, province, or realm names |
type |
are these values from an ECOREGION, PROVINCE, or REALM map. Defaults to "ECOREGION". Note all caps. |
realm |
What geographic realm are the data from (Marine, Freshwater, Terrestrial, Hotspot, IPBES)? |
excludeNoDataAreas |
Exclude areas/regions from the plot with no data? |
makeGROWmapData
takes a dataset with values and a GROW column and makes a joined data.frame
Returns data.frame
object
Sarah Supp
1 2 3 4 5 6 | data(regions.df)
ndf <- data.frame(Ecoregions = levels(regions.df$ECOREGION),
Values = runif(length(levels(regions.df$ECOREGION)), 0,100))
head(makeGROWmapData(ndf, fillColName="Values", regionColName="Ecoregions"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.