Learn R Programming

stocc (version 1.31)

habData: A simulated data set of environmental covariates

Description

This data represents a simulated study area. The study area is a 40 x 40 grid of pixels. There are two variables, a factor variable (e.g., a habitat layer), as well as, a continuous covariate.

Arguments

Format

A data frame with 1600 observations on the following 5 variables.

site

Site labels

x

Longitude coordinate

y

Latitude coordinate

habCov1

a factor with levels 1 2 3

habCov2

a numeric vector

Examples

Run this code
# NOT RUN {
data(habData)
image(x=seq(0.5,39.5,1), y=seq(0.5,39.5,1), 
	z=t(matrix(as.numeric(habData$habCov1),40)), main="habData: Factor environmental covariate",
	xlab="x", ylab="y", col=rainbow(3))


dev.new()
image(x=seq(0.5,39.5,1), y=seq(0.5,39.5,1), 
	z=t(matrix(habData$habCov2,40)), main="habData: Continuous environmental covariate",
	xlab="x", ylab="y", col=terrain.colors(50))


# }

Run the code above in your browser using DataLab