Questions tagged «yaxis»

6
如何用2个不同的y轴绘图?
我想在R中叠加两个散点图,以便每个点集都有其自己的(不同的)y轴(即,在图的位置2和4上),但这些点看起来重叠在同一图上。 有可能这样做plot吗? 编辑显示问题的示例代码 # example code for SO question y1 <- rnorm(10, 100, 20) y2 <- rnorm(10, 1, 1) x <- 1:10 # in this plot y2 is plotted on what is clearly an inappropriate scale plot(y1 ~ x, ylim = c(-1, 150)) points(y2 ~ x, pch = 2)
122 r  plot  yaxis 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.