Re: [R] 3D-plots of 2D-grids

2013-02-15 Thread David Winsemius
Compare: persp(matrix(c(1,1,NA,NA, 1,1,NA,NA, 1,NA,NA,NA, 1,NA,NA,1), 4,4), zlim=c(0,2)) persp(matrix(c(1,1,0,0, 1,1,0,0, 1,0,0,0, 1,0,0,1), 4,4), zlim=c(0,2)) -- David. On Feb 15, 2013,

Re: [R] 3D-plots of 2D-grids

2013-02-15 Thread David Winsemius
On Feb 15, 2013, at 1:14 AM, jas wrote: > Hello David, > thanks again for your reply. > > Two things remain unclear. That the data is disjointed is ok, as there are > only values in hectares, where there are actually buildings and stuff, > forest/nature is NA. > > The presp-scan that I get fro

Re: [R] 3D-plots of 2D-grids

2013-02-15 Thread jas
Hello David, thanks again for your reply. Two things remain unclear. That the data is disjointed is ok, as there are only values in hectares, where there are actually buildings and stuff, forest/nature is NA. The presp-scan that I get from persp(grd) has no similarity to the image in 2d. My gues

Re: [R] 3D-plots of 2D-grids

2013-02-14 Thread David Winsemius
On Feb 14, 2013, at 8:05 AM, jas wrote: calc_ext3.asc I supplied a small extent of the grid, that I am trying to visualize. It s a ascii-grid with 800 cells. My goal is to display the Grid-Values as the z-variable. The point th

Re: [R] 3D-plots of 2D-grids

2013-02-14 Thread jas
calc_ext3.asc I supplied a small extent of the grid, that I am trying to visualize. It s a ascii-grid with 800 cells. My goal is to display the Grid-Values as the z-variable. The point that I dont understand, is what is my input as x a

Re: [R] 3D-plots of 2D-grids

2013-02-14 Thread David Winsemius
On Feb 14, 2013, at 1:10 AM, jas wrote: Hello everybody, I have an Ascii-grid (100x100m) with population density over Switzerland (local coordinations system, CH LV03). Now I would like to have a nice graphic to present the data. I would like to make a plot that will show the density as

[R] 3D-plots of 2D-grids

2013-02-14 Thread jas
Hello everybody, I have an Ascii-grid (100x100m) with population density over Switzerland (local coordinations system, CH LV03). Now I would like to have a nice graphic to present the data. I would like to make a plot that will show the density as the z-variable and raise for example a stacking p