Re: [R] Stacked bar plot of frequency vs time

2011-07-15 Thread marcel
Thank you for the solutions! I have the first one working and it does exactly what I am looking for. Unfortunately I have to put the plot in a common figure alongside other plots made in the basic environment (challenging!). With the second method, I was unable to make the stacked bars locate to

Re: [R] Stacked bar plot of frequency vs time

2011-07-11 Thread Marc Schwartz
On Jul 11, 2011, at 9:36 AM, marcel wrote: > Hi All, > New to R, but committed. I looked in a number of places but can't figure out > my current problem. I have date of the type: > > Time Type1 Type2 Type3 > 1.50 .25 .25 > 4.55 .25 .20 > 5.65 .2

Re: [R] Stacked bar plot of frequency vs time

2011-07-11 Thread Richard M. Heiberger
Marcel, tC <- textConnection(" Time Type1 Type2 Type3 1.50 .25 .25 4.55 .25 .20 5.65 .20 .15 ") tmp <- read.table(header=TRUE, tC) close.connection(tC) require(lattice) tmpdf <- data.frame(Time=rep(tmp$Time, 3), stack(tmp[,2:4])) tmpdf barc