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

David Winsemius dwinsemius at comcast.net
Thu Oct 7 01:08:02 CEST 2010


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.

>
>
> Regards,
> Justin Peter
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Justin Peter
> Research Scientist
> Earth System Modelling and Radar Applications Group


David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list