xYplot has many options that are passed to panel.xYplot. Did you read the documentation? You can suppress labels, use an automatically generated Key() function to control where you want keys, and use several other options. Start with label.curve=FALSE and go from there. Frank
bwr87 wrote > I'm trying to work the lattice xYplot function to plot confidence > intervals > for two groups on the same plot. The problem is that it automatically > labels the groups (1 and 2) on the plot itself, and the labels get > obscured > by the CI lines and make it look bad. > > This is my code: > > xYplot(Cbind(Mean,L95,U95) ~ jitter(Time), type='b', data=A,main="Bouts > Vs. > Time",col=c('black', 'gray'), groups=Group,title="Bouts",xlab="Time", > ylab="Bouts", method="bars", lwd=3, ylim=c(0,30)) > > > A is the data, with columns Time, Group, Mean, L95, U95. L95 and U95 are > the lower and upper confidence interval estimates. Group is either 1 or 2, > each measured at the same number of time points. > > The goal is simply to take the labels off of the plot itself. Then I can > use an auto.key to put the labels on the side. > > Please help! > > -Ben > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@ > mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ----- Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/xYplot-help-tp4660102p4660108.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.