plot_distmap: Plot distribution data on map

Description Usage Arguments Value Author(s) Examples

Description

Plot distribution data on map

Usage

1
2
3
plot_distmap(x, mapdatabase = "world", region = ".", legend = FALSE,
  panel = FALSE, interactive = TRUE, jitter = position_jitter(width =
  0, height = 0), plot = TRUE, gazetter = TRUE)

Arguments

x

an object of class "records", see symbiota

mapdatabase

The map database to use in mapping. What you choose here determines what you can choose in the region parameter. One of: county, state, usa, world, world2, france, italy, or nz.

region

The region of the world to map. From the maps package, run sort(unique(map_data("world")$region)) to see region names for the world database layer, or e.g., sort(unique(map_data("state")$region)) for the state layer.

legend

logical

panel

plots panels for each species for species above threshold supplied to panel, e.g., 1000

interactive

logical, if TRUE map will be plotted using function mapview::mapview

jitter

If you use jitter, the amount by which to jitter points in width, height, or both.

plot

logical

gazetter

logical if Gazetter should be used to add long lat for USA counties where coordinates are missing; default = TRUE

Value

Map (using ggplot2 package) of points or tiles on a world map.

Author(s)

Franz-Sebastian Krah

Examples

1
2
3
4
5
6
7
## Not run: 
am.dist <- symbiota(taxon = "Amanita muscaria", db = "MyCoPortal")
head(recordsTable(am.dist))
plot_distmap(am.dist, mapdatabase = "state", interactive = TRUE)
plot_distmap(am.dist, mapdatabase = "state", interactive = FALSE)

## End(Not run)

rSymbiota documentation built on July 7, 2019, 5:02 p.m.