【问题标题】:R: Add relative axes to on the right and top of the plotR:在绘图的右侧和顶部添加相对轴
【发布时间】:2015-07-01 13:10:45
【问题描述】:

我想让一个简单的情节看起来更好一点。为此,除了绝对值之外,还想添加相对轴。我想我可以使用 axis(3,...) 来做到这一点,但我还没有弄清楚如何。

你能帮我解决这个问题吗?

【问题讨论】:

    标签: r plot axes multiple-axes


    【解决方案1】:

    如果我理解你

    尝试类似的东西

      x=1:10
        y=x^2
    
        plot(y~x)
        axis(3, at=x,labels =mean(x)-x)
    

    【讨论】:

      猜你喜欢
      • 2015-05-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-17
      • 2021-09-14
      • 1970-01-01
      相关资源
      最近更新 更多