--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
Hi
I am having this problem. My data starts out like this:
dat<-data.frame(prmtr=rep(1:4,c(3,3,3,3)),algo=rnorm(12))
(actually i have about 120 rows but this should do). Im trying to get
something that looks like the oxboys example, except I don't have a
grouping variable like subject, only the implicit order within each
value of prmtr.
i want to draw 3 lines joining 4 prmtr points (like the
Oxboys example in the book) based on the 3 instances of algo
within each parameter range. so i want the 1st line to join
4 points polygonally:
(1,1st algo next to prmtr=1)
(2,1st algo next to prmtr=2)
(3,1st algo next to prmtr=3)
(4,1st algo next to prmtr=4)
then the 2nd line should join:
(1,2nd algo next to prmtr=1)
(2,2nd algo next to prmtr=2)
(3,2nd algo next to prmtr=3)
(4,2nd algo next to prmtr=4)
and the 3rd line likewise.
but unlike the Oxboys sample, i don't have any Subject names
or id codes. they're just implicit.
(in fact, the ordering of the algo results within prmtr is
essentially random, so id also be interested in drawing 3 lines
involving the maxes, next highest, and lowest values within each
prmtr)
This is very much in keeping with the philosophy of data that
underlies ggplot2 and plyr - you're better off being explicit about
what you want, even if it requires a little typing.
The places in ggplot2 were things are implicit/automated/magical tend
to be the things that people struggle the most with (e.g. grouping).
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
--