[R] plotting data in non-orthogonal coords.

Andreas Franke stu44414 at mail.uni-kiel.de
Wed Dec 1 14:14:52 CET 2004


Am Dienstag, 30. November 2004 13:13 schrieb Petr Pikal:
> 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


Hi !

Thanks alot !!! The akima package was exactly what I needed. Looks like it 
works out now.

Best wishes and a fine christmas time ...

Andreas




More information about the R-help mailing list