How can I selectively colour the entire area of a plot based on specified points on the x-axis?

后端 未结 0 521
暖寄归人
暖寄归人 2020-12-21 19:53

I would like to colour the background of a line plot based on manually inserted coordinates on the x-axis.

As a simple example:

x <- 1:10
y <- c(         


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