【问题标题】:Why aren't bearings aligning in proper azimuths in plot?为什么轴承没有在绘图中以正确的方位角对齐?
【发布时间】:2013-10-24 00:29:15
【问题描述】:

我在 R 中使用 plotrix 包。polar.plot 函数允许我绘制每个方位的目标频率。我有这个例子:

library(plotrix)
ex <- c(100,100,100,100,100,120,120,140,150,170,200,200,200,200)
tex <- table(ex) 
polar.plot(as.numeric(tex), start = 90, clockwise = TRUE, 
   line.col = "blue", lwd = 2)  

你可以试试这个吗?我无法弄清楚为什么它们没有正确对齐。

【问题讨论】:

  • 我应该提供更多信息......
  • 检查您的绘图的纵横比是否为 1:1(?par,搜索asp,或查看MASS::eqscplot
  • library(plotrix) polar.plot(as.numeric(tex), start = 90, 顺时针 = TRUE, line.col = "blue", lwd = 2) ex

标签: r bearing plotrix


【解决方案1】:

您需要使用polar.pos 参数:

 polar.plot(as.numeric(tex), 
     polar.pos=as.numeric(names(tex)), start = 90, clockwise = TRUE, 
     line.col = "blue", lwd = 2) 

【讨论】:

    猜你喜欢
    • 2018-05-24
    • 1970-01-01
    • 1970-01-01
    • 2022-01-18
    • 2012-01-27
    • 2021-10-18
    • 2016-05-30
    • 2021-09-16
    • 1970-01-01
    相关资源
    最近更新 更多