[R] highlighting subset of point with xyplot (or Hmisc(xYplot))

From: Patrick Lorch <plorch_at_email.unc.edu>
Date: Sat 17 Jul 2004 - 07:32:45 EST


Hello all,

        I am trying to use xyplot to give a six panel plot and to highlight only points (in any panel) that meet a certain criterion. With the plot command I would do something like:

	plot.default(filein$Site,filein$circ.conc)
	points(filein$Site,filein$circ.conc,type="p",
		pch=ifelse(filein$p.value<5e-02,19,21))
I had thought I could just stick in the pch line from above into either xyplot or xYplot with groups set to Site like:

        xyplot(circ.conc~Day|Site,data=allsites.byday,groups=Site, pch=ifelse(allsites.byday$p.value<5e-02,19,21)) This does not produce any highlighting (all symbols come out as open circles (19)). I have not messed with writing my own panel functions, though I know that is where the solution must lie. Hopefully someone has an example that is close enough to help me. I can send an example plot to anyone that wants one.

	Thanks,
	 -Pat

Dr. Patrick D. Lorch

                 plorch@email.unc.edu
      http://www.unc.edu/~plorch/lorch.html
Department of Biology           W: 919-843-2320
University of North Carolina F: 919-962-1625

   at Chapel Hill
CB#3280, Coker Hall
Chapel Hill, NC 27599-3280
USA



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 17 07:42:07 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:36:40 EST