By hrbrmstr
James Austin (@awhstin) made some #spiffy 4-panel maps with base R graphics but also posited he didn’t use ggplot2
because:
…
ggplot2
and maps currently do not support world maps at this point, which does not give us a great overall view.
That is certainly a box I would not put ggplot2
into, especially with the newly updated R maps
(et al) packages, ggplot2
2.0 and my (still in development) ggalt
package (though this was all possible before ggplot2
2.0 and ggalt
). NOTE: I have no idea why I get so defensive about ggplot2
besides the fact that it’s one the best visualization tools ever created.
Here’s all you need to use the built-in facet options of ggplot2
to make the 4-panel plot (as James points out, you can get the data file from here: (CLIWOC15.csv)[http://www.austinwehrwein.com/wp-content/uploads/2015/12/CLIWOC15.csv]):
library(ggplot2) # FYI you need v2.0 |