TheGoat
TheGoat

Reputation: 2867

Increase the label size for data, seasonal, trend and remainder in a seasonal decomposition in R

I wish to increase the size of the font of the words "data" "seasonal" "trend" and remainder in the stl function in R.

I have modified a bunch of parameters using the set.pars argument with the plot function but changing cex and cex.sub and cex.labs has no impact on these 4 labels.

Is there an alternative way to modify them?

Below is my code for the seasonal decomposition plot and here is a link to a dput of my LX0088U09A3.stl variable for a reproducible example:

LX0088U09A3ts <- ts(as.numeric(LX0088_Raw$LX0088U09A3), frequency = 96)
LX0088U09A3.stl <- stl(LX0088U09A3ts, s.window = "periodic", robust = TRUE)
plot(LX0088U09A3.stl, 
     main = "Seasonal Decompostion for LX0088U09A3",
     col.range = "red",
     set.pars = list(cex.axis = 2,
                     cex.lab = 2, 
                     cex.main = 2, 
                     mar = c(0, 6, 0, 6), 
                     oma = c(6, 0, 4, 0), 
                     tck = -0.02,
                     lwd=2, 
                     mfrow = c(4,1)))

Upvotes: 0

Views: 684

Answers (0)

Related Questions