Skip to content

harshkrishna17/ggplot2-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

ggplot2-Functions

A repository to hold code for plotting functions that make creating vizzes using ggplot2 easy

xG Race Chart

Create an xG race chart using data from Understat. Code to create function

To Create, extract the data, run the function, and run the following line (setting specific parameters) for the final viz.

plot_xgrace(data = data, team_home = "Manchester United", team_away = "Liverpool",
            home_color = "#e31a1c", away_color = "#980043", theme = "dark")

xgr


Finishing Variance Line

Plot a Linechart that shows how a players finishing trends over time using Understat data. Code here.

To Create, load the packages, run the function, and run the following line (setting specific parameters) for the final viz.

plot_varline(player_id = 5555, roll_avg = 50, theme = "dark")

Rplot274

About

A repository to hold code for plotting functions that make creating vizzes using ggplot2 easy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages