[R] Polar Plots

From: ogbos okike <ogbos.okike_at_gmail.com>
Date: Mon, 11 Apr 2011 14:38:00 +0200


Dear List,
Following the link below (
http://rgm2.lab.nig.ac.jp/RGM2/func.php?rd_id=plotrix:clock24.plot) I got an interesting polar plots which displayed my data and the time of observation. Thank you very much for providing such details.

However, I have two set of data which I wish to display in the same polar plot. I tried using points to add the second data but could not succeed.

That is, after the running the first code:

clock24.plot(a,b,main="Test Clock24 (lines)",show.grid=FALSE,   line.col="green",lwd=3)
 if(dev.interactive()) par(ask=TRUE)
 # now do a 'daylight' plot
 clock24.plot(a,b,
  main="Test Clock24 daytime (symbols)",   point.col="blue",rp.type="s",lwd=3)
 # reset the margins
par(mar=c(5,4,4,2))

I tried to add the second using:
 points(aa,bb,col="blue")
Error in xy.coords(x, y) :
  (list) object cannot be coerced to type 'double'
> points(add = TRUE,a,b,col="blue")

Error in xy.coords(x, y) :
  (list) object cannot be coerced to type 'double'

Any further help will be much appreciated.

Best regards
Ogbos

        [[alternative HTML version deleted]]



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. Received on Mon 11 Apr 2011 - 12:40:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 11 Apr 2011 - 19:10:29 GMT.

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

list of date sections of archive