[R] xyplot and separate abline per plot

From: Karin Lagesen <karinlag_at_studmed.uio.no>
Date: Fri, 27 Jun 2008 12:45:17 +0200

Hello list!

I have a set of data like this:

> alldata[1:5,]

     breaks numbers         disttype moltype            type
1 0.0000000    6598 Gapped Distances      5S Between species
2 0.4066667       0 Gapped Distances      5S Between species
3 0.8133333    5228 Gapped Distances      5S Between species
4 1.2200000       0 Gapped Distances      5S Between species
5 1.6266667    9702 Gapped Distances      5S Between species

> levels(alldata$disttype)

[1] "Gapped Distances" "Ungapped Distances"
> levels(alldata$type)

[1] "Between species" "Same species"
> levels(alldata$moltype)

[1] "16S" "23S" "5S"
>

Which I plot like this:

xyplot(numbers~sqrt(breaks)|moltype+disttype, groups = type, data = alldata)

This results in a plot consisting of six different panels. Now, I have a set of six different values that I would like to incorporate into these plots through a vertical line in each panel (one separate value per panel). I think I can do this through panel.abline somehow, but I don't know how to incoporate that into the xyplot command, and I don't know how to specify which values I want plotted in each plot.

I hope I am able to convey what I want:)

Thanks in advance,

karin

-- 
Karin Lagesen, PhD student
karin.lagesen_at_medisin.uio.no
http://folk.uio.no/karinlag

______________________________________________
R-help_at_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.
Received on Fri 27 Jun 2008 - 13:01:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 27 Jun 2008 - 15:31:49 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive