[R] Display an image defined on a polar grid [SEC=UNCLASSIFIED]

David Winsemius dwinsemius at comcast.net
Thu Oct 7 01:12:22 CEST 2010


On Oct 6, 2010, at 7:08 PM, David Winsemius wrote:

>
> On Oct 6, 2010, at 6:30 PM, Justin Peter wrote:
>
>> Dear R-help,
>>
>> I have a matrix of data values specified in polar coordinates, i.e.  
>> (r,theta).
>>
>> I know that I can transform this image to Cartesian coordinates and  
>> then use image to display the results, however, I want to display  
>> the image as is, without any coordinate transformations. This would  
>> require displaying individual "pieces of pie" colour-coded by their  
>> data value.
>>
>> A comparable plotting routine in Matlab would be pcolor (which  
>> doesn't require a regular grid) or the use of polyfill in IDL to  
>> fill each polygon.
>>
>> Does anyone know of a package that could help me out? Any help  
>> appreciated.
>
> ggplot2 has coord_polar.

Also
polar.plot in plotrix

http://search.r-project.org/cgi-bin/namazu.cgi?query=polar+coordinates+plot&max=100&result=normal&sort=score&idxname=functions&idxname=Rhelp08&idxname=Rhelp10&idxname=views&idxname=Rhelp02

>
>>
>>
>> Regards,
>> Justin Peter
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Justin Peter
>> Research Scientist
>> Earth System Modelling and Radar Applications Group
>
>
> David Winsemius, MD
> West Hartford, CT
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list