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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://r-unimelb.gitbook.io/rbook/putting-the-r-in-art/some-basic-plots.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
