Some Basic Plots
Introducing the fundamental scatter, line and bar plots for visualisation
Getting started
While ggplot graphs can look incredibly diverse, thanks to the grammar of graphics structure, creating them all follow roughly the same steps. The first step to creating a plot is to use the ggplot() function to specify where the data is coming from (our dataset) and what variables we want to map onto it (which columns in that dataset).
Let's start by having a look at the titanic dataset
Last updated