[This article was first published on Statistics Blog » r, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Click on image for a larger version. Here is the code:
To leave a comment for the author, please follow the link and comment on their blog: Statistics Blog » r.