---
title: "Data Visualization with Esquisse"
output:
  ioslides_presentation:
    css: ../styles.css
    widescreen: yes
---


```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(here)
```

## Esquisse Package

```{r esquisse}
#install.packages("esquisse")
library(esquisse)
```

## Esquisse Package

The [`esquisse` package](https://cran.r-project.org/web/packages/esquisse/vignettes/get-started.html) is helpful for getting used to creating plots in R.

It is an interactive tool to help you in RStudio.

## Starting a plot

Using the `esquisser()` function you can start creating a plot for a `data.frame` or `tibble`.

```{r, eval = FALSE}
esquisser(mtcars)
```


```{r, fig.alt="starting a plot", out.width = "50%", echo = FALSE, fig.align='center'}
knitr::include_graphics("images/start_a_plot.png")
```
![](https://media.giphy.com/media/xUOxf7XfmpxuSode1O/giphy.gif)



## Select Variables

To select variables you can drag and drop variables to the respective axis that you would like the variable to be plotted on.

```{r, fig.alt="select variables", out.width = "50%", echo = FALSE, fig.align='center'}
  knitr::include_graphics("images/variables.gif")

```

## Find code

To select variables you can drag and drop variables to the respective axis that you would like the variable to be plotted on.

```{r, fig.alt="select variables", out.width = "50%", echo = FALSE, fig.align='center'}
  knitr::include_graphics("images/get_code.gif")
```

