atsa-es / atsa-labs

Labs developed for Applied Fisheries Time-series Analysis course. The link for the text is https://atsa-es.github.io/atsa-labs/
Other
20 stars 19 forks source link

plotting/formatting question #8

Closed amandawarlick closed 5 years ago

amandawarlick commented 5 years ago

Sort of a stupid question... Do the four-layer decomposition plots not clump together? In other words, this code doesn't work - the plots all pop up independently rather than in a 2x2 grid.

par(mfrow = c(2,2), oma=c(0,0,0,0), mar=c(1,1,1,1)) plot <- plot(decomp_hs, yax.flip = TRUE, xlab = 'Harbor seal') plot <- plot(decomp_csl, yax.flip = TRUE, xlab = 'California sea lion') plot <- plot(decomp_ssl, yax.flip = TRUE, xlab = 'Steller sea lion') plot <- plot(decomp_sp_cet, yax.flip = TRUE, xlab = 'Dalls porpoise')

Thanks!

mdscheuerell commented 5 years ago

I doubt it will work to do what you're trying because the plot method for decomp() presumably already sets something like par(mfrow = c(4, 1), ...).

amandawarlick commented 5 years ago

Yep, got it - thanks!