epinion_style: Add Epinion colors to your graph

View source: R/epinion_style.R

epinion_styleR Documentation

Add Epinion colors to your graph

Description

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.

Usage

epinion_style(legend = FALSE)

Arguments

legend

Defaults to FALSE. If you want to include a legend, please change this setting to TRUE. It will add the legend at bottom.

Value

A CVI compliant plot


emilteddy/epinionR documentation built on May 21, 2023, 2:54 p.m.