Book Image

Building Interactive Graphs with ggplot2 and Shiny [Video]

By : Christophe Ladroue
Book Image

Building Interactive Graphs with ggplot2 and Shiny [Video]

By: Christophe Ladroue

Overview of this book

<p>Ggplot2 is one of R’s most popular packages, and is an implementation of the grammar of graphics in R, which is a powerful tool for performing statistical analyses and drawing publication-quality graphics.</p> <p>This course helps you move beyond the default graphics offered by R and shows you how to start making elegant and publication-ready plots. It equips you with a good command over ggplot 2 to build sophisticated and interactive graphs that suit your own data requirements.</p> <p>This practical course shows you how to build statistical plots layer by layer by following along with the examples provided. You’ll first get familiar with the basics of ggplot2 by understanding the use of the building blocks of standard statistical plots and see how you can combine elements to make new graphics. Next, you’ll learn how to customize your graphs, and finally you’ll explore how to make interactive webpages to present your work or analyze your data.</p> <h1>Style and Approach</h1> <p>Packt video courses are designed to cover the breadth of the topic in short, hands-on, task-based videos. Each course is divided into short manageable sections, so you can watch the whole thing or jump to the bit you need. The focus is on practical instructions and screencasts showing you how to get the job done.</p> <p>Following an example-driven approach, this course offers a practical way to learn how to build interactive graphs with ggplot 2 and Shiny with the help of easy-to-understand examples and step-by- step instructions.</p>
Table of Contents (8 chapters)
Chapter 2
Understanding Basic Plots
Content Locked
Section 3
Bar Charts
Bar charts show the composition of your data against a certain criterion. - Get the data in a data frame - Use geom_bar() and map the aesthetics x to the column you want to decompose your dataset on - Use the parameter position and the aesthetics fill to break down the bars across another dimension