makeGROWmapData: makeMEOWmapData

Description Usage Arguments Details Value Author(s) Examples

Description

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.

Usage

1
2
3
makeGROWmapData(newdata, fillColName, fillAlphaColName = NULL,
  regionColName = type, type = "ECOREGION", realm = "Marine",
  excludeNoDataAreas = T)

Arguments

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?

Details

makeGROWmapData takes a dataset with values and a GROW column and makes a joined data.frame

Value

Returns data.frame object

Author(s)

Sarah Supp

Examples

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"))

sarahsupp/growR documentation built on May 29, 2019, 1:50 p.m.