View source: R/epinion_style.R
epinion_style | R Documentation |
This function can be added at the end of your ggplot2 syntax. Thus it takes a plot object as an input and adds a layer consisting of the Epinion guidelines for conducting visualisations. In this way, it is convient to be compliant with the CVI when you are on the fly. As a defualt it does not include a lengend if you split your data by a group variable, but this can easily be added be setting the legend argument to TRUE.
epinion_style(legend = FALSE)
legend |
Defaults to FALSE. If you want to include a legend, please change this setting to TRUE. It will add the legend at bottom. |
A CVI compliant plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.