[英]Line Plot in R with two y-axes using twoord.plot: Values of first y-axis missing
我想使用以下代碼創建具有兩個不同 y 軸的 plot:
twoord.plot(lx = stack_question$year, ly = stack_question$size, ry =stack_question$density , rx = stack_question$year)
但是,左側的 y 軸錯過了這些值。 解決該問題的最佳方法是什么?
我的數據集看起來像這樣。
year size density
1 1975 144 0.06116022
2 1980 164 0.10030097
3 1985 168 0.11203907
4 1990 171 0.14876726
5 1995 173 0.15874613
6 2000 192 0.21369396
7 2005 193 0.23662855
8 2010 195 0.29243307
9 2015 196 0.30810454
提前謝謝了!
嘗試為左斧添加限制:
lylim=c(100,200)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.