Thanks, i have it now: library(lattice) mein.panel <- function(x, y){ panel.xyplot(x, y) panel.abline(a=0, b=1, lwd=2, col="red")} x<-c(1,2,3,4,5,6) y<-x xyplot(x ~ y, main = "xyplot", xlab="Sequenz 2", ylab="Sequenz 1", las=1, panel=mein.panel)
2011/10/28 S Ellison <s.elli...@lgcgroup.com>: > > >> From: Jörg Reuter >> >> Why >> is the line with xyplot() not always in the middle of the >> dots like plot()? > > Because you used the base graphics command abline() on a lattice plot? > > They don't mix. The plot regions are different for lattice and base graphics > - notice that the second abline doesn;t go to the window edges either. > > S Ellison > > ******************************************************************* > This email and any attachments are confidential. Any use...{{dropped:8}} > > ______________________________________________ > 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. > ______________________________________________ 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.