Richard,
This worked perfectly (adding # before "update"). Thank you so much for
your help. I've bought a couple of books on R Graphics so I can learn
this stuff better.
Will
On 9/23/2013 1:08 PM, Richard Kwock wrote:
Hi,
Getting text to show on the panel plots is a bit trickier, but doabl
Hi,
Getting text to show on the panel plots is a bit trickier, but doable.
# append to the dataset the mean for each group and line
d66df_mns <- cbind(d66df, "Means" = c(rep(c(mn1, mn2, mn3), each = 6)))
# set the y_lim to extend a bit further above the graph to allow for
the means to be display
Dear Richard, your solution to the second question worked like a charm.
Thanks! So much to learn about this stuff, but at least it is fun.
On the first question, yes, I want a text to display the mean in each of
the 12 panels.
Will
On 9/23/2013 11:23 AM, Richard Kwock wrote:
Hi,
To answer
Dear R helpers,
I am generating three artificial short interrupted time series datasets
(single-case designs; call them Case 1, Case 2, Case 3) and then plotting
them in xyplot. I will put the entire code below so you can reproduce. I
have been unable to figure out how to do two things.
1. Each
Hi,
To answer your second question you can do something like this:
p<-xyplot(dvy ~ sessidx | case, group = numph, data=d66df, col = c(1:4),
layout=c(1, 3), xlab= "Sessions",
ylab = "Number of Seconds",
type="l")
update(p, panel=function(...){
panel.xyplot(...)
panel.a
5 matches
Mail list logo