Share the Gallery !Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

This page aims to provide useful R code to custom the strips of your ggplot2 plots when using faceting.  If you are interested about how to custom the layout of your ggplot2 charts, you can visit the page concerning customizing axis, legend and background.

Here we want to modify non data components, and it is often done trough the theme() command. This page is strongly inspired from the help page of ggplot2 (?theme). Also, do not hesitate to visit the awesome ggplot2 documentation for more information.

Chart 1 is a really basic plot relying on the mtcars dataset. The 3 following charts show how to custom strip background, text, and how to modify the space between sections.


Not what you are looking for ? Make a new search !

[mediatagger]


Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz