Skip to Content
R Programming By Example
book

R Programming By Example

by Omar Trejo Navarro
December 2017
Beginner to intermediate
470 pages
12h 29m
English
Packt Publishing
Content preview from R Programming By Example

Styling our application with themes

Up to this point, we have been using the theme provided by default by Shiny, but now that our application is finished, we want to stylize it with some tech-looking colors. In that case, we can use the shinythemes and ggthemr packages, which provide us with an easy way to apply themes to Shiny applications and ggplot2 graphs, respectively.

All we need to do to apply the themes is to tell the ggplot2 framework to apply the flat dark theme provided by the ggthemr package, and to make sure that the outer side of the graph is also stylized we use the type = outer parameter, as is shown here. The code should be placed wherever we placed our ggplot2 code for cohesiveness, which is in the functions.R file for this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Efficient R Programming

Efficient R Programming

Colin Gillespie, Robin Lovelace
R Programming

R Programming

Jared P. Lander

Publisher Resources

ISBN: 9781788292542Supplemental Content