spocc (version 0.1.2)

print.occdat: Print brief summary of occ function output

Description

Print brief summary of occ function output

Plot occ function output on a map (uses base plots via the rworldmap package)

Usage

## S3 method for class 'occdat':
print(x, ...)

## S3 method for class 'occdat': plot(x, ...)

Arguments

x
Input object from occ function, of class occdat
...
Further args passed on to points fxn

Examples

Run this code
spnames <- c('Accipiter striatus', 'Setophaga caerulescens', 'Spinus tristis')
out <- occ(query = spnames, from = 'gbif', gbifopts = list(hasCoordinate=TRUE))
print(out)
out # gives the same thing

# you can still drill down into the data easily
out$gbif$meta
out$gbif$data
spnames <- c('Accipiter striatus', 'Setophaga caerulescens', 'Spinus tristis')
out <- occ(query=spnames, from='gbif', gbifopts=list(hasCoordinate=TRUE))
plot(out, cex=1, pch=10)

Run the code above in your browser using DataLab