[R] How to plot a 3D picture

Deepayan Sarkar deepayan at stat.wisc.edu
Tue Nov 30 05:25:51 CET 2004


On Monday 29 November 2004 21:07, Peter Yang wrote:
> Hi,
>
> Suppose I have a 4 by 4 matrix as following:
>
> 10 6 3 1
>
>  8 4 3 2
>
>  6 2 4 3
>
>  9 3 4 2
>
> The x axis is the column index of the matrix, the y axis is the row
> index of the matrix and the z axis is the value in the corresponding
> position of the matrix.
>
> I tried to use contour and image. They are not the ones I want.

You are probably looking for ?persp.

Deepayan




More information about the R-help mailing list