[R] Missing value in circ.mean and polar.plot

Jim Lemon jim at bitwrit.com.au
Wed Jul 18 11:50:49 CEST 2007

Gagnon,Francois [SteFoy] wrote:
> Hi, 
> I try to compute circular means for a matrix with NAs, but the function "circ.mean" return only means for lines with complete values and do not accept "na.omit=T" or "na.rm=T", or "na.action=na.omit", or "na.fail=T". 
> Also, I try to use "polar.plot" of the package poltrix with the same matrix, but angles are not display because of many NAs.
> Does any one know how what should be the right NA action to get results in these two cases ?
Hi Francois,
For one thing, you should be using radial.plot, as the angles are in 
radians, not degrees. However, your data shows up a couple of problems 
with radial.plot that I will fix. I'm currently fixing some minor (I 
hope) problems with plotrix v2.2-3 and this should turn up on CRAN in 
the next few days. I'll see if I can get radial.plot to produce the sort 
of plots you are seeking.

Thanks for finding the problem.


More information about the R-help mailing list