> For the complete documentation index, see [llms.txt](https://r-unimelb.gitbook.io/rbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://r-unimelb.gitbook.io/rbook/putting-the-r-in-art/some-basic-plots.md).

# Some Basic Plots

## 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&#x20;
