Multipanel plotting in R
with base graphics
Sean Anderson Nov 2011 scanders@sfu.ca
Multipanel plotting in R with base graphics Sean Anderson Nov - - PowerPoint PPT Presentation
Multipanel plotting in R with base graphics Sean Anderson Nov 2011 scanders@sfu.ca Compared to what? - Tufte by hand ggplot2 lattice par(mfrow) layout() split.screen() par(mfrow) par(mfrow) John et al. 1988, Science, 239, p162 and
with base graphics
Sean Anderson Nov 2011 scanders@sfu.ca
par(mfrow)
par(mfrow)
log(mean) log(variance)
Anderson et al. In Prep.par(mfrow)
layout()
1 2 3
layout()
layout()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
layout()
split.screen()
split.screen()
split.screen()
r = −0.1 0.5 1.5 a r = 0 b r = 0.1 k = 2 c 0.5 1.5 d e k = 16 f r = −0.5 0.5 1.0 g r = 0 h r = 0.5 µ2 µ1 = 1 i 0.5 1.0 1.0 1.5 2.0 2.5 j 1.0 1.5 2.0 2.5 k µ2 µ1 = 16 1.0 1.5 2.0 2.5 l Taylor's power law z−value Portfolio effect
Anderson et al. In Prep.split.screen()
split.screen()
0, 0.46 1, 0.46 1, 0.44 0.75, 0.44 0.75, 0 1, 0 0.72, 0 0.37, 0 0.37, 0.44 0.72, 0.44 0.35, 0.44 0.34, 0 0, 0.43 0, 0 1, 1 0, 1
0, 0.46 1, 0.46 1, 0.44 0.75, 0.44 0.75, 0 1, 0 0.72, 0 0.37, 0 0.37, 0.44 0.72, 0.44 0.35, 0.44 0.34, 0 0, 0.43 0, 0 1, 1 0, 1
split.screen()
split.screen()