[R] Polar coordinates - contour plots

Bert Gunter gunter.berton at gene.com
Wed Dec 10 00:39:31 CET 2008


I believe the latter for base R, as the standard contour plotting depends on
internal (fortran, I think) code that works only for rectangular
coordinates.Should be only a few lines of fiddling though (exercise left to
reader).

Try 

RSiteSearch("polar coordinates", restr="func")  

to see what might be available in packages if fiddling doesn't suit.

-- Bert Gunter

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Todor Kondic
Sent: Tuesday, December 09, 2008 3:19 PM
To: r-help at r-project.org
Subject: [R] Polar coordinates - contour plots

Hello,

I have data for contour plot which is given in polar coordinates. Is
there a straightforward way to plot in polar coordinates in R, or do i
need to fiddle with transformations and then to sort the x and y
vectors to be in ascending order as required by contour function and
relatives?

Cheers,

Todor

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list