[英]R plotrix, polar.plot without discontinuity
我正在使用plotrix程序包從我的測量中得出極坐標。
看起來,即使我提供了所有從1到360度(或從0到359)的極坐標的測量值,第一個點和最后一個點也沒有連接。 例如
require(plotrix)
polar.plot(seq(1,360),polar.pos=1:360,radial.lim=c(0,361),rp.type="l")
我發現一個快速而骯臟的修復方法是添加一個測量點,因此使用361代替360
如
polar.plot(seq(1,360),polar.pos=0:360,radial.lim=c(0,361),rp.type="l")
給出警告信息。
Warning messages:
1: In cos(radial.pos[i, ]) * lengths[i, ] :
longer object length is not a multiple of shorter object length
2: In sin(radial.pos[i, ]) * lengths[i, ] :
longer object length is not a multiple of shorter object length
是否有其他選擇,因為我不希望看到最終用戶警告消息:)
多謝您的回覆
問候亞歷克斯
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.