[R] Multcomp

Nair, Murlidharan T mnair at iusb.edu
Sat Jul 22 19:00:15 CEST 2006

Here it is again, hope this is more clear
I am using the following data (only a small subset is given):
Habitat Fungus.yield
Birch 20.83829053
Birch 22.9718181
Birch 22.28216829
Birch 24.23136797
Birch 22.32147961
Birch 20.30783598
Oak 27.24047258
Oak 29.7730014
Oak 30.12608508
Oak 25.76088669
Oak 30.14750974
Hornbeam 17.05307949
Hornbeam 15.32805111
Hornbeam 18.26920177
Hornbeam 21.30987049
Hornbeam 21.7173223

I am using the multcomp package to do multiple comparisons as follows 

library(multcomp) # loads the package

fungus<-read.table("fungi.txt", Header=T)    # Reads the data from file saved as fungi.txt

fungus.cirec<-simint(Fungus.yield~Habitat, data=fungus,conf.level=0.95,type =c("Tukey"))  # Computes cimultaneous intervals using Tukey's method

plot(fungus.cirec)   # plots the data

The plot function plots all the comparisons, I want to plot only part of the data since it clutters the graph. 

How do I plot only part of the data ?

How do I tell it to mark the significant comparisons?

How do I get rid of the field names in the plot? For eg. The plot labels are HabitatBirch-HabitatOak, I want it to be labeled as Birch-Oak.


Hope I have posted it according to the guidelines, let me know otherwise. 

Cheers .../Murli

More information about the R-help mailing list