[R] Contour plot

dhkblaszyk@zeelandnet.nl dhkblaszyk at zeelandnet.nl
Wed Feb 9 11:22:52 CET 2005


> x <- log(1:10)
> y <- log(1:10)
> z <- 1:100
> contour(matrix(z,ncol=10))

> did not do what I expected it to do. I expected the contour lines to
become compressed gradually.

I believe you want to do:

contour(x,y,matrix(z,ncol=10))

This will show the desired contour-plot.

Kind regards, Darius Blaszijk




More information about the R-help mailing list