Skip to content
Prev 317695 / 398506 Next

subplot (Hmisc) and radial.plot (plotrix) problem

On 02/16/2013 05:30 PM, Andrew Roberts wrote:
Hi Andrew,
I'm not quite sure, but the radial plot function may be working as I 
changed the ylim in the initial call to plot to:

ylim=c(-5,5),

added the lines:

   print(ang)
   print(freq)

to the loop in your code. What is printed is:

[1] -0.0715503  0.0000000
[1] 1 1
       ang
0.0715503
freq
    3
[1] -0.0715503  0.0715503  0.1438370
[1] 1 2 1
[1] 0.0715503 0.1438370
[1] 1 3
[1] 0.0715503 0.1438370
[1] 1 1

and this does look like what is being displayed. Five of the lines are 
in much the same place and are overplotted and there are five 
"centroids" displayed. I'm not completely familiar with the "subplot" 
function, so I'll let Greg comment on that. Clearly the successive 
radial plots are not being offset as expected.

Jim