An add-in for effortless dataviz with a video demo.
Welcome to Day 28! We’re wrapping up Week 4 as we dive into today’s exciting topic.
Today, we’re exploring a beginner-friendly and intuitive tool for data visualization in R called esquisse.
This add-in lets you create visualizations with minimal effort and, crucially, provides the R code for each plot, ensuring reproducibility for future use.
Let’s jump into esquisse
! (Meyer and Perrier 2024)
esquisse
Installing esquisse
is straightforward.
install.packages("esquisse")
Once installed, esquisse
appears as an add-in within RStudio. Here’s how you can access it:
Open RStudio.
Click on the “Addins” tab in the top menu.
Select “ggplot2 builder” from the esquisse
dropdown menu.
A new window will open, displaying a variety of plot types on the left and your dataset on the right.
Select the plot type you want to create and drag and drop the variables into the appropriate fields.
Let’s use esquisse
to create one of our favorite visualizations: a scatterplot with the Palmer Penguins dataset.
For esquisse to work, you need to have the data loaded into your environment. Let’s load the necessary packages and dataset:
library(tidyverse)
library(palmerpenguins)
penguins <- palmerpenguins::penguins
Now, with our penguins data stored in penguins
, we’re ready to jump into esquisse.
Go to the Add-ins menu and click on esquisse.
Since our data is already loaded, you’ll see the penguins dataset once you click environment.
Select import data
.
Configure your scatterplot or any other plot type you prefer.
Once your plot is ready,
This code is reproducible, so you can run it anytime to recreate the same plot.
Feel free to tweak the titles, themes, and other aesthetics as needed within the code.
Congratulations!
By now, you’ve explored how to use esquisse
to simplify the plotting process, and you’ve learned enough to build on the code even when esquisse
doesn’t provide every option. Don’t forget to save your scripts for future reproducibility!
I will see you tomorrow!
For attribution, please cite this work as
Soundararajan (2024, Oct. 28). My R Space: Day 28 of viz with me. Retrieved from https://github.com/soundarya24/SoundBlog/posts/2024-10-28-day-28-of-viz-with-me/
BibTeX citation
@misc{soundararajan2024day, author = {Soundararajan, Soundarya}, title = {My R Space: Day 28 of viz with me}, url = {https://github.com/soundarya24/SoundBlog/posts/2024-10-28-day-28-of-viz-with-me/}, year = {2024} }