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