sppImg: Species Image

Description Usage Arguments Value Examples

View source: R/sppImg.R

Description

Plot an image of a species from the package database of images

Usage

1
sppImg(x, common = NULL, ...)

Arguments

x

the name of the species (Genus species)

common

The species' common name; if NULL, no common name printed

...

Arguments to be passed to image

Value

Numeric vector of length two indicating the number of pixes horizontally and vertically; or if no match, returns NULL and prints a message.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(rgdal)
dev.new(width=8, height=7)
par(mar=c(0.5,0.5,1,0.5), oma=c(0,0,0,0), ps=8, cex=1, mfrow=c(3,3))
clean.ebs[Picture=="y"][pick(spp,9),
	sppImg(
		unique(spp),
		unique(common),
		side=3,
		adj=0.1,
		line=-0.85,
		xpd=TRUE
	),
	by="spp"
]

rBatt/trawlData documentation built on May 26, 2019, 7:45 p.m.