par(mfrow=c(1, 2), mar=c(2, 2, 2, 1))
plot.new()
plot.window(xlim=c(1999, 2009), ylim=c(5, 9)*1000)
lines(science_spending/3 ~ year, data=vigen_csv, lty=1, col=rgb(1, 0, 0, .8), pch=16)
text(2003, 8200, 'US spending on science, space, technology (USD/3)', col=rgb(1, 0, 0, .8), cex=.6, srt=30)
lines(hanging_suicides ~ year, data=vigen_csv, lty=1, col=rgb(0, 0, 1, .8), pch=16)
text(2004, 6500, 'US Suicides by hanging, strangulation, suffocation (Deaths)', col=rgb(0, 0, 1, .8), cex=.6, srt=30)
axis(1)
axis(2)
plot.new()
plot.window(xlim=c(2002, 2009), ylim=c(0, 5))
lines(cage_films ~ year, data=vigen_csv[vigen_csv$year>=2002, ], lty=1, col=rgb(1, 0, 0, .8), pch=16)
text(2006, 0.5, 'Number of films with Nicolas Cage (Films)', col=rgb(1, 0, 0, .8), cex=.6, srt=0)
lines(pool_fall_drownings/25 ~ year, data=vigen_csv[vigen_csv$year>=2002, ], lty=1, col=rgb(0, 0, 1, .8), pch=16)
text(2006, 4.5, 'Number of drownings by falling into pool (US Deaths/25)', col=rgb(0, 0, 1, .8), cex=.6, srt=0)
axis(1)
axis(2)