[R] trouble with plotrix package

From: Randy Zelick <zelickr_at_pdx.edu>
Date: Sat 20 May 2006 - 01:19:12 EST

Hello list,

I wrote a simple program to plot data on polar axes, taking advantage of the plotrix package and its function radial.plot. The basic plot works fine, but I am having difficulties with the formatting. There are three problems, but I thought I would attack them one at a time. Here is the first:

If my data set contains values with all vector lengths between 0 and 100 (and various angles), and I set rp.type="s", I get a nice "bullseye" type plot with the data shown on a background of concentric circles labeled appropriately. On the other hand, if my data only contain vector length values from, say, 80 to 90 then the first concentric ring is at 80, and five more rings are scrunched between 80 and 100.

It looks like there is an autoscaling feature turned on that says make a fixed number of rings starting at a nice value below the user's lowest data value and extending to a nice value above.

There is a switch to set the upper bound on rings (radial.lim) but I don't see a way to specify the lower bound. What I want is a "bullseye" plot that goes from my start value (first ring at 10) to my end value (last ring at 100) independent of the data range.



R. Zelick				email: zelickr@pdx.edu
Department of Biology			voice: 503-725-3086
Portland State University		fax:   503-725-3888

P.O. Box 751
Portland, OR 97207

1719 SW 10th Ave, Room 246
Portland, OR 97201

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 20 01:32:04 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 20 May 2006 - 08:10:15 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.