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,
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
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
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
4 matches
Mail list logo