R-Project: How to limit axes in SPI plot? ylim & xlim don't work
问题 Dear stackoverflow community, I'm quite new in R and this is my first stackoverflow entry so please show mercy with me if it's not the perfect questioning. I'm calculating standardized precipitation index (SPI) with the package "SPEI" for a time series of a climate station with 20 years of monthly precipitation data. I have done this for the timescale of 1 and 12 month like this: spi1 <- spi(SPI_Anu_input_ts[,'PRCP_Anu'], 1) spi12 <- spi(SPI_Anu_input_ts[,'PRCP_Anu'], 12) The output of SPI is