Advanced graphics in R – links to slides and code

[This article was first published on Revolutions, 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.

A lot of attention recently has gone to the more modern (and, dare I say, sexier) graphics systems in R, ggplot2 and lattice. But there’s a lot of power in the base graphics system built into core R, especially when you want control over every aspect of how the graph is laid out. Ryan Rosario has put together some slides detailing some more advanced tricks capable with the base graphics system. For example:

  • How to create custom axes (for example, an axis on the right, or an axis labelled by dollars or other custom quantity)
  • How to overlay multiple scatterplots (and set the scaling of the axes appropriately)
  • How to create a custom legend
  • How to add gridlines to your graph
  • How to specify colors
  • And even how to create a movie from your graph

All the details are in Ryan’s slides, and yes, the R code to create the example charts is also available.

Byte Mining: Advanced Graphics in R

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)