> For the complete documentation index, see [llms.txt](https://www.rforseo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.rforseo.com/data-viz/using-esquisse-package-x.md).

# Use Esquisse to create plots quickly

ggplots is great package but it can be a bit overwhelming to deal with. So many options and functions. Lucky for us, thanks to Fanny Meyer & Victor Perrier, there is a shortcut, the [esquisse package](https://dreamrs.github.io/esquisse/index.html). It basically helps explore your data quickly and build a ggplot.&#x20;

Let me take an example\
\
As always *installing* and *loading*

```
install.packages("esquisse")
library("esquisse")
```

After that, only one line of code to make the magic happens

```
esquisser()
```

![esquisse wiward](https://2998538899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSXey8kI3RllV-BSG8m%2F-MYWlqB2RgktVbYGRWt4%2F-MYWo3fVcv04CXzsMDzY%2FScreenshot%202021-04-17%20at%2010.41.50%20pm.png?alt=media\&token=f7206b84-ab71-42c1-938f-6ed072c4bcfe)

you pick your dataset, the field you want to import and it's now possible to choose what metrics to display on each axis by drag & dropping them into each selector

![](https://2998538899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSXey8kI3RllV-BSG8m%2F-MYWoZkdgBWdiimreNv7%2F-MYWpahtQgCrdXKoAX34%2FScreenshot%202021-04-17%20at%2010.55.45%20pm.png?alt=media\&token=56a86871-d88e-4690-b24a-4333f84f96ac)

Pick the plot style

![](https://2998538899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSXey8kI3RllV-BSG8m%2F-MYWoZkdgBWdiimreNv7%2F-MYWqSt1Bofg88Dh7dlY%2FScreenshot%202021-04-17%20at%2010.55.54%20pm.png?alt=media\&token=d17e3961-e36d-45c0-9243-99397e9ec421)

you can also customise the plot titles and legends

![](https://2998538899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSXey8kI3RllV-BSG8m%2F-MYWoZkdgBWdiimreNv7%2F-MYWpsFwLYtI1gY2EFn3%2FScreenshot%202021-04-17%20at%2010.55.59%20pm.png?alt=media\&token=5cc352c8-3a4a-48a7-bf3d-d67dee056382)

you can pick the colors and plot style

![](https://2998538899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSXey8kI3RllV-BSG8m%2F-MYWoZkdgBWdiimreNv7%2F-MYWpxttynURaCtljypb%2FScreenshot%202021-04-17%20at%2010.56.04%20pm.png?alt=media\&token=f496bcde-e584-44fa-a8f4-a490316ec84a)

Filter the values

![](https://2998538899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSXey8kI3RllV-BSG8m%2F-MYWoZkdgBWdiimreNv7%2F-MYWq6LPlLCpKoG7n_Nm%2FScreenshot%202021-04-17%20at%2010.56.08%20pm.png?alt=media\&token=9e701a93-6ec3-489e-aa70-f5423f08d2a0)

Last and foremost, it gives you the code to generate this plot + some extra export option.

![](https://2998538899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSXey8kI3RllV-BSG8m%2F-MYWoZkdgBWdiimreNv7%2F-MYWqEXIEgK7gvbFUeLn%2FScreenshot%202021-04-17%20at%2010.56.13%20pm.png?alt=media\&token=efd5ad6e-f863-4cfd-9396-db29b747b690)

Esquisse is not capable of doing every available ggplots but for a simple graph, it's a great way to speed up the processs.
