When I'm generating graphics for publications and talks, I tend to use ggplot2
. However, for very large data sets where I want to generate a quick plot or for courses where students don't have a good grounding in R, I use the base graphics.
Are there any nice (simple!) ways of spicing up R graphics? For example, do you use a nice combination of colours and line types. I tend to do something like:
#Functional but not that nice
plot(x1,y1, type="l")
lines(x2, y2, col=2, lty=2)
In particular, I'm thinking about the plot
, hist
, and density
functions, but I suppose this question applies to all base R graphics.