Learn R Programming

Blossom (version 1.4)

blue162: Example data of biweekly grouse locations

Description

Sequential locations of a blue grouse on its winter ranges in Middle Park, Colorado.

Usage

data(blue162)

Arguments

Format

A data frame with 12 observations on the following 5 variables.
date
Year, month, and day of location.
bird
Bird identification number.
sexage
Sex = 2 = female, age = 3 = adult.
lat
Latitudinal UTM coordinate.
long
Longitudinal UTM coordinate.

Source

Cade, B.S., and R.W. Hoffman. 1993. Differential migration of blue grouse in Colorado. Auk 110, 70--77.

Examples

Run this code
str(blue162)

 seq.cols <- topo.colors(nrow(blue162))
 
 #I jitter locations so overlapping points can be seen
plot(jitter(blue162$long,amount = 4),jitter(blue162$lat,amount = 4),
 bg = seq.cols,cex = 2,pch = 21,xlab = "Longitude",ylab = "Latitude",
 main = "Spatial locations of bluegrouse \nshowing temporal ordering of observations")
 
for(i in 1:length(seq.cols)){
    rect(max(blue162$long)-10,min(blue162$lat)+10*(i-1),
    max(blue162$long),min(blue162$lat)+10*(i),col = seq.cols[i],lty="blank")
    text(max(blue162$long)-15,min(blue162$lat)+10*(i-1)+5,label=i)
    }
    
text(max(blue162$long)-20,min(blue162$lat)+130,
  label = "time order of \nobservations")

Run the code above in your browser using DataLab