README.md

ecacr

Overview

ecacr is intended to allow R users to create introductory data visualizations of ECAC Hockey teams, games, and players. ecacr makes intensive use of the tidyverse, including dplyr, stringr, and ggplot2. Keep reading to see how you can use ecacr.

Installation

This package can be used “as is” through the devtools::install_github() command.

devtools::install_github("CharlesReinhardt/ecacr")

Team Visualizations

ecacr provides two data visualization templates for team level data.

Game Visualizations

ecacr provides two functions for data visualizations of game level data

Individual Visualizations

ecacr also provides two data visualizations for individual player data

Web Scraping

ecacr makes use of rvest to produce a variety of web scraping functions. These are all used internally in the previous data visualization functions for those with no prior ggplot2 experience. Use these functions to scrape the data and then manually create your own visualizations.

Usage

Here are some sample visualizations you can create with ecacr. For more examples, click on the documentation for each individual function.

# Team Visualizations
lollipopChart(var="Assists")

scatterPlot(x="Shots", y="Goals", trend=TRUE, dynamic=FALSE)

# Game Visualizations
winLossChart(team="stlawrence", gender="men", byLocation=TRUE)

boxplot(var="PenaltyMinutes", verbose=FALSE)

# Individual Visualizations
overallLeaders(var="Goals", games="conference", players="skaters", verbose=FALSE)

histogram(var="Shots", players="skaters", verbose=FALSE)



CharlesReinhardt/ecacr documentation built on May 14, 2022, 2:24 a.m.