Message-ID: <CAFAD80-qn1diGWND-swycxtQ9nQ4QfatyqTLK+A6fBGPAbjRAQ@mail.gmail.com>
Date: 2011-10-28T10:47:35Z
From: Jörg Reuter
Subject: Difference between xyplot() and plot()
Hi,
I draw two Plots, one with xyplot() and one with plot(). Why is the
line with xyplot() not always in the middle of the dots like plot()?
library(lattice)
x<-c(1,2,3,4,5,6)
y<-x
plot.new()
plot(x ~ y, main = "Sequenz 1 und Sequenz 2", xlab="Sequenz 2",
ylab="Sequenz 1", las=1)
abline(a=0, b=1,col='red',lwd=2)
and
library(lattice)
x<-c(1,2,3,4,5,6)
y<-x
plot.new()
xyplot(x ~ y, main = "Sequenz 1 und Sequenz 2", xlab="Sequenz 2",
ylab="Sequenz 1", las=1)
abline(a=0, b=1,col='red',lwd=2)