[R] plotting data in non-orthogonal coords.

Deepayan Sarkar deepayan at stat.wisc.edu
Tue Nov 30 16:32:59 CET 2004


On Tuesday 30 November 2004 04:06, Andreas Franke wrote:

[...]

> It would be nice if one could just plot data given as F(x,y) where
> you supply x and y for every data point seperatly so that you dont
> need any specific grid.

This is one solution, but it's not exactly what you want:


library(lattice)
u <- row(matrix(0, nrow = 10, ncol = 15))
v <- col(matrix(0, nrow = 10, ncol = 15))
x <- u
y <- .5 * u + .3 * v
z <- log(u + v)
wireframe(z ~ x * y)


Deepayan




More information about the R-help mailing list