Here is an example you can use:
 #Generate random normal variables to use as dummy data for Fisher's Alpha
alphaBCI<-rnorm(100)
 
#Assume you have 5 sites, each with 20 data points
sites<-rep(c("Site 1", "Site 2", "Site 3", "Site 4", "Site 5"), each=20)
 
#Making sites a factor will produce the stratified boxplots
sites<-as.factor(sites)
 
#Produce boxplot
boxplot(alphaBCI~sites)


________________________________
From: André Silva <bertholdia@gmail.com>
To: r-help@r-project.org 
Sent: Friday, April 20, 2012 8:28 PM
Subject: [R] Barplot problem

Hello,
I have little experience with r, so I wonder if someone could help me?
I need to plot a diversity measure (Fisher`s alpha) for different sites. I
calculated the values using the following commands:

Data(BCI)
alphaBCI <- fisher.alpha(BCI)

I need boxplots showing the data variation between sites. Then I tried:
boxplot(as.data.frame(alphaBCI))

However, it does not appear the box plots for different sites but only the
boxplots for alpha, se, df. Residual and code?

Do anyone know the right expression?

Thank you very much,

Bert

    [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
	[[alternative HTML version deleted]]

