bisonmap: Make map to visualize BISON data.

Description Usage Arguments Value Examples

View source: R/bisonmap.R

Description

Make map to visualize BISON data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
bisonmap(input = NULL, tomap = "points", geom = geom_point,
  jitter = NULL, customize = NULL)

## S3 method for class 'bison'
bisonmap(input = NULL, tomap = "points",
  geom = geom_point, jitter = NULL, customize = NULL)

## S3 method for class 'bison_solr'
bisonmap(input = NULL, tomap = "points",
  geom = geom_point, jitter = NULL, customize = NULL)

Arguments

input

Input bison object.

tomap

One of points (occurrences), county (counts by county), or state (counts by state). For bison class objects, we stop with message if you pass in data from bison() that doesn't include data by each state. For bison_solr class objects, we only allow points.

geom

geom_point or geom_jitter, not quoted.

jitter

jitter position, see ggplot2 help.

customize

Pass in more to the plot.

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# Using function bison
library("ggplot2")
out <- bison(species="Accipiter", type="scientific_name", count=300)
bisonmap(input=out)
bisonmap(input=out, geom=geom_jitter, jitter=position_jitter(width = 0.3, 
  height = 0.3))

# Using function bison_solr
out <- bison_solr(scientificName='Ursus americanus', rows=200)
bisonmap(out)

## End(Not run)

rbison documentation built on Oct. 25, 2018, 5:04 p.m.