Elizabeth's Data Science Blog

Putting it All Together: Dashboards with flexdashboard

R

Dashboards Made Easy The R package flexdashboard makes the creation of sleek dashboards easy. Dashboards are a great way to group visualizations together. More to come… Link to dashboard published on GitHub Pages: https://ebross63.github.io/flexdashboard/

8 Oct 2017 #Data Visualization #Baseball

Time Series Graph

Time Series Graphs with ggplot2 and ggiraph I’ll conclude my data visualization series with a tutorial on time series graphs. We will continue to use MLB data from R’s Lahman package. Specifically, we’ll look at Babe Ruth’s home run totals for each year of his career. Next time, I’ll show you how to put these visualizations together in a dashboard so they are tidy and presentable.

2 Oct 2017 #Data Visualization #Baseball

Bar Graphs

R

Bar Graphs with ggplot2 and ggiraph Bar graphs are similiar to histograms which are discussed in the previous post. Instead of relying on counts to create bins, bar graphs allow the use of variables for both the x and y axis. We will continue to use MLB data from R’s Lahman package to explore bar graphs. To begin this project, install all required R packages. library(Lahman) library(dplyr) library(ggplot2) library(ggiraph) Cleaning the Data To create a bar graph of home run totals by team for the year 1980, our first step is to filter, select, and arrange the desired data.

26 Sep 2017 #Data Visualization #Baseball

Easy Histograms with R

R

Histograms with ggplot2 and ggiraph Creating histograms is another simple data visualization technique that can be extreamly helpful when looking at data sets. To explore histograms, we will use MLB data from R’s Lahman package. We will also use the ggplot2 package to make a histogram. To begin this project, install all required R packages. Also include ggiraph because we will use it later: library(Lahman) library(dplyr) library(ggplot2) library(ggiraph) Cleaning the Data We would like to look at a histogram for MLB players’ recorded weight.

26 Sep 2017 #Data Visualization #Baseball

Simple Data Visualization

R

Scatter Plots with ggplot2 and ggiraph Simple data visualization can provide insight that is easy to view and understand. To explore scatter plots, we will use MLB data from R’s Lahman package. We will also use the ggiraph package to make an interactive scatter plot. To begin this project, install all required R packages: library(Lahman) library(dplyr) library(ggplot2) library(ggiraph) Creating the dataset In this example we will look at career homeruns vs.

24 Sep 2017 #Data Visualization #Baseball