Last data update: 2014.03.03

R: Example bivariate data for MRPP
example1R Documentation

Example bivariate data for MRPP

Description

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

Usage

data(example1)

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


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)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Blossom)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Blossom/example1.Rd_%03d_medium.png", width=480, height=480)
> ### Name: example1
> ### Title: Example bivariate data for MRPP
> ### Aliases: example1
> ### Keywords: datasets
> 
> ### ** Examples
> 
> 
> 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)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>