[R] Condition layer across panels in lattice

2016-02-15 Thread Jeff Stevens
I would like to plot individual subject means for two different conditions in a lattice stripplot with two panels. I would also like to add within-subject confidence intervals that I have calculated and stored in separate data frame. I am trying to overlay these confidence intervals with latticeExt

Re: [R] Different x-axis scales using c() in latticeExtra

2013-07-22 Thread Jeff Stevens
les, > I'm afraid. I would recommend displaying each separate plot on one > page using plot.trellis() or the gridExtra function that John Kane > mentioned. > > Cheers > Felix > > > On 21 July 2013 02:50, David Winsemius wrote: >> >> On Jul 19, 2013,

Re: [R] Different x-axis scales using c() in latticeExtra

2013-07-21 Thread Jeff Stevens
les. But I take your point that I should have paid more attention to the warnings! Thanks, Jeff On Sat, Jul 20, 2013 at 11:50 AM, David Winsemius wrote: > > On Jul 19, 2013, at 8:18 PM, Jeff Stevens wrote: > >> Hi, >> >> I would like to combine multiple xyp

Re: [R] Different x-axis scales using c() in latticeExtra

2013-07-21 Thread Jeff Stevens
2:50, David Winsemius wrote: >> >> On Jul 19, 2013, at 8:18 PM, Jeff Stevens wrote: >> >>> Hi, >>> >>> I would like to combine multiple xyplots into a single, multipanel >>> display. Using R 3.0.1 in Ubuntu, I have used c() from latticeExtra

[R] Different x-axis scales using c() in latticeExtra

2013-07-19 Thread Jeff Stevens
Hi, I would like to combine multiple xyplots into a single, multipanel display. Using R 3.0.1 in Ubuntu, I have used c() from latticeExtra to combine three plots, but the x-axis for two plots are on a log scale and the other is on a normal scale. I also have included equispace.log=FALSE to clean

Re: [R] Adding text labels to lattice plots with multiple panels

2011-04-12 Thread Jeff Stevens
: > On Mon, Apr 11, 2011 at 12:49 AM, Jeff Stevens wrote: >> Many thanks, Peter.  This works brilliantly, and I prefer to have the >> labels assigned outside of panel function as well. > > You could also consider using which.packet(). You haven't explicitly > told us ho

Re: [R] Adding text labels to lattice plots with multiple panels

2011-04-10 Thread Jeff Stevens
Many thanks, Peter. This works brilliantly, and I prefer to have the labels assigned outside of panel function as well. Cheers, Jeff On Sun, Apr 10, 2011 at 5:18 PM, Peter Ehlers wrote: > On 2011-04-10 04:50, Jeff Stevens wrote: >> >> Hi Peter, >> >> Thanks f

Re: [R] Adding text labels to lattice plots with multiple panels

2011-04-10 Thread Jeff Stevens
t; >>>> df$lab<- rep(1:6, each = 3) >>>> bwplot(dv ~ f1 | f2, data = df, ylim = c(0.5, 1), >>>>  panel = function(x, y, ..., subscripts) { >>>>    lab<- df$lab[subscripts] >>>>    panel.bwplot(x, y,  ...) >>>>    panel.

Re: [R] Adding text labels to lattice plots with multiple panels

2011-04-09 Thread Jeff Stevens
lot2  would be > > library(ggplot2) > ggplot(df, aes(x = f1, y = dv)) + geom_boxplot() + >     geom_text(aes(x = as.numeric(f1), lab = lab), y = 0.55, alpha = 0.5) + >     facet_wrap( ~ f2) + ylim(0.5, 1) > > The alpha argument in geom_text() is designed to mitigate the overplotting

[R] Adding text labels to lattice plots with multiple panels

2011-04-08 Thread Jeff Stevens
Hi, I am trying to add text to the bottom of a lattice bwplot with multiple panels. I would like to add a label below each boxplot, but the labels do not come from the data. I've tried the following, code: f1 <- c(rep(c(rep("a", 3), rep("b", 3), rep("c", 3)), 2)) f2 <- c(rep("A", 9), rep("B", 9

Re: [R] Direction and scaling of cumulative distribution in ecdfplot

2010-03-15 Thread Jeff Stevens
.) }) Cheers, Jeff Ken Knoblauch wrote: Jeff Stevens googlemail.com> writes: I have two questions regarding the ecdfplot function in the latticeExtra package. 1. How can I plot the fraction of values >= x rather than <=x, like the what = "1-F" argument in the Ecdf functi

[R] Direction and scaling of cumulative distribution in ecdfplot

2010-03-14 Thread Jeff Stevens
= list(id = c(1, 1,  :   Can't have log Y-scale Many thanks, Jeff -- Jeff Stevens Research Scientist Center for Adaptive Behavior and Cognition Max Planck Institute for Human Development Lentzealle 94 14195 Berlin, Germany __ R-help@r-project.org mai