[R] x-axis in filled.contour

From: Thomas Steiner <finbref.2006_at_gmail.com>
Date: Fri 19 Jan 2007 - 15:55:51 GMT


The filled.contour function gives me some strange output. What did I do wrong?

x=seq(0,1,length=10)
y=seq(0,1,length=10)
z=array(rnorm(100),dim=c(10,10))

filled.contour(x,y,z)
lines(0.4,0.8,type="p")
abline(v=0.4,lty="dashed")

the x-cooridnate of the line and the point is 0.4, but it's slightly above. This problem just appears with "filled.contour", so I guess there is a problem with the key on the right. I use 2.4.0 under unbuntu
Thomas



R-help@stat.math.ethz.ch 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. Received on Sat Jan 20 03:06:25 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 19 Jan 2007 - 16:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.