R plot: draw polygon with coordinates based on second y-axis values

前端 未结 0 1377
攒了一身酷
攒了一身酷 2021-02-10 19:31

I have a plot like the following:

plot(x, y)
par(new=T)
plot(x, z, xlab=NA, ylab=NA, xaxt="n", yaxt="n")
axis(side=4, at = pretty(range(z)))
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题