Content
This package installs various styling assets as outlined below.
Fonts
It includes fonts in the two main font families used in the graphical profile:
- Lato (Open SIL licensed font)
- Georgia (MS font)
Templates for rmarkdown content
Two templates are provided for styling rmarkdown
authored content:
- one for general HTML content with the CSS styles
- one for PDF output
The HTML template uses a stylesheet (CSS file) harvested from https://redpill-linpro.com on 2020-01-27 which has been “beautified” with https://www.cleancss.com/css-beautify/.
This makes it possible to use the CSS when rendering rmarkdown content into standalone HTML, but currently the rendering step requires some patience due to the lag when some online assets are pulled in from the web.
Theme for ggplot2
It also provides a theme_rl()
function which can be used to style ggplots.
Color palette
Finally, there is a set of color palettes based on the primary and secondary signature colors for Redpill-Linpro. This color palette can be used to color qualitative data, sequential data and diverging data.
- qualitative palette for nominal or unordered categorical values (using the primary profile color (blue), followed by the secondary profile colors, each in three variants using 100%, 40% and 80% alpha respectively
- sequential palette for quantitative magnitudes - high/low values - or for ordered categorical data (the primary color in 5 stepped variations - using varying levels of alpha)
- diverging palette for use with quantitative values centered around some point - or centered ordered categorical data (the primary color is used on one end of the palette and the closest complement color on the other to provide a 7-color palette with three steps of blue, a gray midpoint and three steps of red)