[R] Plot()

Ute Visser ute.visser at ufz.de
Thu May 12 11:56:09 CEST 2005


Hello!

I wonder why the x and the y expression are treated differently in the
plot-function?
In the example below I should get three times the same graph, shouldn't
I?

column<-c(0,1)
par(mfrow = c(3,1))
plot((1-column)~column)
plot(column~(1-column))
plot(column~as.vector(1-column))

Thanks for checking!

U




More information about the R-help mailing list