Re: [R] stuck on making a line graph across time, with 4 categories

2008-06-27 Thread ONKELINX, Thierry
A solution with ggplot2 would be dataset - data.frame(cat = factor(rbinom(1000, 1, prob = .33), labels = LETTERS[1:2]), startyear = floor(runif(1000, 2001, 2009)), studentid = 1:1000) library(ggplot2) ggplot(dataset, aes(x = startyear, colour = cat)) + stat_bin(aes(y = ..count..), geom=line,

[R] stuck on making a line graph across time, with 4 categories

2008-06-26 Thread Christopher W. Ryan
I can't seem to find just what I'm looking for in R help, Everitt and Hothorn HSAUR, Murrell's book, or the R graphics gallery at http://addictedtor.free.fr/graphiques/. Probably not looking efficiently, but anyway, If my data look like this: head(data) cat startyear studentid 1 other

Re: [R] stuck on making a line graph across time, with 4 categories

2008-06-26 Thread Ben Bolker
Christopher W. Ryan cryan at binghamton.edu writes: I can't seem to find just what I'm looking for in R help, Everitt and Hothorn HSAUR, Murrell's book, or the R graphics gallery at http://addictedtor.free.fr/graphiques/. Probably not looking efficiently, but anyway, If my data look

Re: [R] stuck on making a line graph across time, with 4 categories--SOLVED

2008-06-26 Thread Christopher W. Ryan
Ben-- worked perfectly. Thank you. My first real experience with lattice graphics. --Chris Christopher W. Ryan, MD SUNY Upstate Medical University Clinical Campus at Binghamton 40 Arch Street, Johnson City, NY 13790 cryanatbinghamtondotedu PGP public keys available at