R中的twoord图 [英] twoord plot in R

查看:162
本文介绍了R中的twoord图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 plotrix 程序包绘制二次坐标图.我的尝试看起来像这样

Using the plotrix package to make a twoord plot. My attempts look like this

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

The problem I have is that it automatically does not plot the full left axis? Why is this?

在此示例中是相同的 如何绘制2种不同的y轴?

It is the same in this example here How can I plot with 2 different y-axes?

如何获得全左y?

推荐答案

由于您没有提供数据或代码,因此我将其作为示例:

As you didn't provide your data or your code, I offer this as an example:

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')

这篇关于R中的twoord图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆