【问题标题】:twoord plot in RR中的二阶图
【发布时间】:2015-11-29 04:02:29
【问题描述】:

使用 plotrix 包制作二阶图。我的尝试看起来像这样

我遇到的问题是它不会自动绘制完整的左轴?为什么是这样?

这里的例子也是一样的 How can I plot with 2 different y-axes?

如何获得完整的左 y?

【问题讨论】:

  • 请提供一个可重现的例子。

标签: r plot plotrix


【解决方案1】:

由于您没有提供您的数据或您的代码,我提供以下示例:

library(plotrix)

twoord.plot(2:10, seq(3, 7, by=0.5) + rnorm(9),
            1:15, rev(60:74) + rnorm(15), 
            type= c("l", "l"), xaxt = 'n', yaxt = 'n')

【讨论】:

    猜你喜欢
    • 2017-07-19
    • 2014-01-09
    • 2011-04-20
    • 2021-07-25
    • 1970-01-01
    • 1970-01-01
    • 2018-02-14
    • 1970-01-01
    • 2021-05-07
    相关资源
    最近更新 更多