R Language: How to Set ylim?

-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)

Leave a Comment