Learn R Programming

Blossom (version 1.4)

example1: Example bivariate data for MRPP

Description

Hypothetical bivariate responses in 2 groups from Biondini et al. (1985).

Usage

data(example1)

Arguments

Format

A data frame with 7 observations on the following 3 variables.
group
Grouping variable (1 or 2).
x_coord
Response variable x.
y_coord
Response variable y.

Source

Biondini, M.E., C.D. Bonham, and E.F. Redente. 1985. Secondary successional patterns in a sagebrush (Artemisia tridentata) community as they relate to soil disturbance and soil biological activity. Plant Ecology 60, 25--36.

Examples

Run this code

plot(example1$x_coord,example1$y_coord,
 col = c("red","blue")[(example1$group==1)+1],
 cex = 2,pch = c(19,8)[(example1$group==1)+1],xlab = "X Coordinate",
 ylab = "Y Coordinate",main = "Example MRBP data set",cex.lab = 1.3,xlim = c(1,5),
 ylim = c(0,6))

legend(x = 1,y = 6,legend = c("Group 1","Group 2"),col = c("red","blue"),
 pch = c(19,8),cex = 1.5)

Run the code above in your browser using DataLab