[R] plotting data in non-orthogonal coords.

Petr Pikal petr.pikal at precheza.cz
Tue Nov 30 13:13:26 CET 2004



On 30 Nov 2004 at 11:06, Andreas Franke wrote:

<snip>
> 
> Hi !
> Thanks for replying to my post and sorry for not being specific
> enough. Maybe I am the one who didnt get the point , but as far as I
> understand R plots filled.contour(x,y,z,...) in the following way:
> 
> x,y define a grid in cartesian coords, i.e. the angle between x and y
> is 90°. So if I have data on such a grid I am fine. My data is on an
> equally spaced grid in a coordsystem where x and y are at an angle of
> 60°. If you transform into cartesiancoords this isnt an equally spaced
> grid anymore.  You could interpret it as an equally spaced grid on
> which there is only data given on every second grid point.
> 
> 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.

Maybe interp() in akima package can help you, but as I said it 
strongly depends on what you really want to achieve.

Cheers
Petr

> 
> I hope that someone can help.
> Thanks in advance. Andreas

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list