How to Write Functions to Make Plots with ggplot2 in R

Scatter Plot with a lot code repetition

Okay here is a confession. Often I preach writing functions to simplify life at work. Although I try to follow the “writing functions” mantra decently, there is a grey area where I don’t use functions that much. Any guesses? Often make tonnes of exploratory plots with ggplot2 with tons of repetition of code with slight… Continue reading How to Write Functions to Make Plots with ggplot2 in R