An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20100514/411d3bb0/attachment.pl>
color lines by group membership in spaghetti plot
5 messages · Jack Monpas-Huber, David Winsemius, Federico Calboli +2 more
On May 14, 2010, at 12:36 PM, Jack Monpas-Huber wrote:
Greetings, I am new to R. Right now I'm most interested in the spaghetti plots of achievement over time by student ID associated with longitudinal analysis. How can I do a spaghetti plot of all students, but color the lines by group membership such as gender or race, and indicate this color scheme in the legend? Any advice would be much appreciated.
I do not think this is a Mac specific question, and I think you should read the r-help Posting Guide.
Jack Jack B. Monpas-Huber, Ph.D. Director of Assessment & Student Information Shoreline Public Schools 18560 1st Ave NE Shoreline, WA 98155 (206) 368-4774 Office (206) 947-9926 Cell Shoreline Assessment Web site [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
David Winsemius, MD West Hartford, CT
On 14 May 2010, at 17:36, Jack Monpas-Huber wrote:
Greetings, I am new to R. Right now I'm most interested in the spaghetti plots of achievement over time by student ID associated with longitudinal analysis. How can I do a spaghetti plot of all students, but color the lines by group membership such as gender or race, and indicate this color scheme in the legend? Any advice would be much appreciated.
I suspect this is more for R-help than for R-mac, but I suspect that: function.for.spaghetti.plot(data, col = your.color.vector) your.color.vector = a vector of color, of length equal to that of the students, where students that you want to have the same color (say student 1and 3) are coded as the same color (say 'red', 'blue', 'red') Google spaghetti plots and R, it might prove helpful. And check the help for legend() F -- Federico C. F. Calboli Department of Epidemiology and Biostatistics Imperial College, St. Mary's Campus Norfolk Place, London W2 1PG Tel +44 (0)20 75941602 Fax +44 (0)20 75943193 f.calboli [.a.t] imperial.ac.uk f.calboli [.a.t] gmail.com
Check out ggplot: http://had.co.nz/ggplot2/ http://tinyurl.com/ggplot2-book On Fri, May 14, 2010 at 1:36 PM, Jack Monpas-Huber
<jack.monpas.huber at shorelineschools.org> wrote:
Greetings, I am new to R. ?Right now I'm most interested in the spaghetti plots of achievement over time by student ID associated with longitudinal analysis. ?How can I do a spaghetti plot of all students, but color the lines by group membership such as gender or race, and indicate this color scheme in the legend? ?Any advice would be much appreciated. Jack Jack B. Monpas-Huber, Ph.D. Director of Assessment & Student Information Shoreline Public Schools 18560 1st Ave NE Shoreline, WA 98155 (206) 368-4774 Office (206) 947-9926 Cell Shoreline Assessment Web site ? ? ? ?[[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20100514/a652e2ee/attachment.pl>