Visualization
Blogs & Slides Only
A Gentle Guide to the Grammar of Graphics with ggplot2💯
What is this?
Slides and code from workshop by Garrick. This presentation was part of a 5 day Workshop on data analysis using R by the American Statistical Association, University of South Florida Chapter (for this workshop links visit the learning R page.
- Link to slides here: https://pkg.garrickadenbuie.com/gentle-ggplot2/#1
- Link to code here: https://github.com/gadenbuie/gentle-ggplot2/
A ggplot2 grammar guide💯
Added Mon Sep 14th, 2020
What is this?
This guide isn’t comprehensive, and it will likely continue to evolve. But it’s at a place that it might be useful to orient you, a colleague, or a student to ggplot2 and extensions.
- Link to site here: https://evamaerey.github.io/ggplot2_grammar_guide/about
A ggplot2 Tutorial for Beautiful Plotting in R💯
By Cédric
Added Mon Sep 14th, 2020.
What is this?
Wonderful introductory tutorial to ggplot2 and the wonderful things you could do with it.
Align the assignment operators within a highlighted area
What is this?
Technically not a visualization resource but once you use it on your script, it is so pleasant to look at (at least for me).
- Link to animations here: https://github.com/seasmith/AlignAssign
Alternatives to Simple Color Legends in ggplot2
By Meghan Hall
Added Sat Dec 12th, 2021
What is this?
Excerpt from post: Legends, or the way aesthetic values are mapped to data, are an essential part of plots, and this post introduces a few different options for labeling colors effectively.
- Link to post here: https://meghan.rbind.io/blog/color-legend/
An Introduction to Hierarchical Modeling
What is this?
This project was built by Michael Freeman, a faculty member at the University of Washington Information School.
- All code for this project is on GitHub here: https://github.com/mkfreeman/hierarchical-models/
Advanced data visualization with R and ggplot2 a practical
By Yan Holtz
What is this?
Excerpt from site: It allows to go further with ggplot2: annotation, theme customization, color palette, output formats, scales, and more.
An introduction to cowplot
By Meghan Hall
Added Sat Dec 11, 2021
What is this?
Excerpt from site: “This week’s #TidyTuesday data set is all about lemurs (with data from the Duke Lemur Center), so I figured I would stick with the animal theme and discuss a few functions from Claus Wilke’s cowplot package, which is my personal favorite package for arranging plots made in R”.
- Post and course here: https://meghan.rbind.io/blog/cowplot/
Astonishingly easy mapping in R with mapview
Added Mon Apr 24, 2023
What is this?
Excerpt from site: TCreate interactive maps of GIS data with tooltips, hover text, and legends in one short and simple line of code. Plus get extras like side-by-side sliders and multiple maps in sync.
Calendar plot in R using ggplot2
What is this?
Excerpt from site: The calendR package allows creating fully customizable ggplot2 calendar plots with a single function. In addition, the package provides arguments to create heatmap calendars. In this tutorial you will learn how to create ready to print yearly and monthly calendar plots in R.
- Link to blog here: https://r-coder.com/calendar-plot-r/
- Link to package here: https://cran.r-project.org/web/packages/calendR/
Create a ggalluvial plot in R
By SAROJ
Added Sun May 28th, 2023
What is this?
Excerpt from blog: A ggalluvial plot, also known as an alluvial diagram, is a type of visualization used to show how categorical data is distributed among different groups. It is particularly useful for visualizing how categorical variables are related to each other across different levels of a grouping variable.
- Link to blog here: https://pyoflife.com/create-a-ggalluvial-plot-in-r/
Create stylish tables in R using formattable
By Laura Ellis
What is this?
Blog that uses formattable to crate pretty tables.
- Link to blog here: https://www.littlemissdata.com/blog/prettytables
- Link to repo here: https://github.com/lgellis/MiscTutorial/tree/master/Austin
Designing ggplots making clear figures that communicate
What is this?
Wonderful slides to make your figures and visualization much clear and communicative. I visit it quite often.
- Slides here: https://designing-ggplots.netlify.app/#1
Designing ggplots making clear figures that communicate
What is this?
Wonderful slides to make your figures and visualization much clear and communicative. I visit it quite often.
- Slides here: https://designing-ggplots.netlify.app/#1
How to Increase Legend Key Size in ggplot2
By datavizpyr
Added Fri Apr 14th, 2023
What is this?
Excerpt from article: In this tutorial, we will learn how to increase the color legend’s point (or legend key) size in ggplot2. Often when you make a plot with multiple groups and large number of data points, the legend key for the color variable are small and can be not legible in the plot.
Here we will see examples of increasing the point size of the legend in a scatter plot using guides() function in ggplot2.
- Link to article here: https://datavizpyr.com/increase-legend-key-size-in-ggplot2/
How To R: Visualizing Distributions
By Nick Martin
Added Mon May 29th, 2023
What is this?
Excerpt from blog: Distributions are a very important thing to understand during any EDA process. In this article we will look into multiple different ways to visualize distributions and how to create those visuals in R.
Image sizes in an R markdown document
Added Fri Apr 23rd, 2021
What is this?
Excerpt from site: This is part four of our four-part series
Part 1: Specifying the correct figure dimension in {knitr} (this post).
Part 2: What image format should you use for graphics.
Part 3: Including external graphics in your document.
Part 4: Setting default {knitr} options.
- Link to site here: https://www.jumpingrivers.com/blog/knitr-rmarkdown-image-size/.be
Improving ggplots with Text Color
By Eric Ekholm
Added Sun Jun 6th, 2021
What is this?
Excerpt from site: instead of having a legend off to the right or the bottom or wherever it is you typically place your legends, I’ve changed the font color of the words “Pass” and “Fail” in the title to contain this same information. We can do this using Claus Wilke’s invaluable {ggtext} package, which provides improved rendering for ggplot2.
- Link to article here: https://www.ericekholm.com/posts/2021-03-24-improving-ggplots-with-text-color/
Introduction to Geospatial Visualization with R-R-Ladies Abuja + Abuja R Users
By Rami Krispin
Added Sun Dec 12, 2021
What is this?
Excerpt from site: Introduction to spatial data - Working with sf objects - Plot sf objects with mapview, tmap, and ggplot2 - Create choropleth maps
- Link to github repo. andcode here: https://github.com/RamiKrispin/gis-dataviz-workshop
- Link to slides here: https://ramikrispin.github.io/gis-dataviz-workshop/#1
Introducing {ggflowchart}
Added Mon May 29, 2023
What is this?
Excerpt from site: Flowcharts can be a useful way to visualise complex processes, and the new R package {ggflowchart} makes them easy to create in R. This blog post shows you how. Back in April 2022, I participated in the #30DayChartChallenge and for the Storytelling prompt on day 29 in the Uncertainty category, I created the Goldilocks Decision Tree. I also gave a talk to R-Ladies Nairobi on the challenge and used the flowchart as a live-coding example. A summary of the talk ended up as a blog post.
- Link to blog here: https://nrennie.rbind.io/blog/introducing-ggflowchart/
Introduction to rbokeh–a vignette
What is this?
Excerpt from vignette: Bokeh is a visualization library that provides a flexible and powerful declarative framework for creating web-based plots. Bokeh renders plots using HTML canvas and provides many mechanisms for interactivity. Bokeh has interfaces in Python, Scala, Julia, and now R. The Bokeh library is written and maintained by the Bokeh Core Team consisting of several members of Continuum Analytics and other members of the open source community. The rbokeh package is written and maintained by Ryan Hafen (@hafenstats) with several contributions from others.
- Link to blog here: https://hafen.github.io/rbokeh/articles/rbokeh.html
Introduction to Tableau
By Meghan Hall
Added Dec 11, 2021
What is this?
Excerpt from blog: “A bunch of people have been asking me for some kind of Tableau tutorial, so I’m experimenting with a screencast video on YouTube! The video should be embedded below and is also available here.”
- Link to blog here: https://meghan.rbind.io/blog/introduction-to-tableau/
- Link to video here: https://www.youtube.com/watch?v=fN7vAfeN0_E&feature=youtu.be
Principles & Practice of Data Visualization
By Alison Hill
What is this?
Excerpt from site: This is the site for sharing our Data Visualization Labs for CS631 at Oregon Health & Science University. It has exercises and solutions! 💯
- Link to the workshop here: https://apreshill.github.io/data-vis-labs-2018/index.html
R graphics with ggplot2 workshop notes
Added Mon Sep 14th, 2020
What is this?
Workshop listed in Harvard’s resources. Materials can be downloaded.
- Link to workshop notes: http://tutorials.iq.harvard.edu/R/Rgraphics/Rgraphics.html#geometric_objects_and_aesthetics
- Link to download materials here: http://tutorials.iq.harvard.edu/R/Rgraphics.zip
R you ready to make charts?
By Will Chase
Added Mon Sep 14th, 2020
What is this? Slides from Talk given by Will Chase at a Philly dataviz meetup on May 29th, 2019.
- Link to slides: https://www.williamrchase.com/slides/ggplot_intro.html#1
Resizing plots
What is this?
How to resize plots in R markdown
The Evolution of a ggplot (Ep. 1)
By Cédric
What is this?
Excerpt from the blog: In this series of blog posts, I aim to show you how to turn a default ggplot into a plot that visualizes information in an appealing and easily understandable way. The goal of each blog post is to provide a step-by-step tutorial explaining how my visualization have evolved from a typical basic ggplot. All plots are going to be created with 100% {ggplot2} and 0% Inkscape.
Visualization innovations: Waffleplots and Swarmplots
What is this? Fun blog about how to make Waffleplots and swarmplots.
Visualizing Spatial Data
What is this?
Here is a list of resources to create visualizations with maps
- https://www.r-spatial.org/r/2018/10/25/ggplot2-sf-2.html
- https://rstudio.github.io/leaflet/projections.html
- https://www.r-graph-gallery.com/278-the-maps-library.html
- http://www.milanor.net/blog/maps-in-r-introduction-drawing-the-map-of-europe/
- https://www.youtube.com/watch?v=wgFVmzSbaQc&list=PL7D2RMSmRO9JOvPC1gbA8Mc3azvSfm8Vv&index=17
- https://www.infoworld.com/article/3644848/astonishingly-easy-mapping-in-r-with-mapview.html
- https://medium.com/appsilon-data-science/r-ggmap-how-to-visualize-spatial-data-in-r-c46dcf970095
- https://carolinamendozab.medium.com/mapping-income-per-capita-by-countries-in-r-using-world-bank-data-cf42eca247c4