R Language: How to Set ylim?

后端 未结 2 1380
难免孤独
难免孤独 2020-12-20 13:48

I am trying to plot data with maximum 9.70 and minimum -58.9.

I coded:

plot(BriannaJan[,3,i], type = \"line\", col=\"black\", 
     main = \"Brianna          


        
2条回答
  •  被撕碎了的回忆
    2020-12-20 14:27

    -60:10 generates a sequence from -60 to 10, what you need as the ylim is a min and max value (with syntax c(min, max)) instead of a sequence, try this:

    ylim=c(-60,10)
    

提交回复
热议问题