dataviz-cheatsheet

Data Viz cheatsheet

Overview

This is a repo that aims to provide a variety of charts with a simple R code to implement them. It is a cheatsheet for selecting the appropriate information for your dataset. Each type of chart comes with a sample dataset to test it first. The output plot is provided as a png file.

Code and Resources Used

R Version: 3.6.3
Packages: ggplot2, dplyr, tidyverse, wordcloud, ggpubr, fmsb, VennDiagram, corrplot, GGally, UpSetR, quantmod, plotly, treemapify, densityridges, circlize

*Click on the chart type to access the repo and on the chart image to access the code

Barplot

barplot

Pareto plot

paretochart

Grouped barplot

grouped-barplot

Stacked barplot

stacked-barplot

Percent stacked barplot

percent-stacked-barplot

Butterfly barplot

butterflyplot

Circular barplot

circular-barplot

Radial barplot

circular-barplot

Piechart

piechart

Radar chart

radarchart

Chord plot

chordplot

Venn diagram

venndiagram

UpSet diagram

upsetdiagram

Gauge plot

gaugeplot

Wordcloud

wordcloud

Contour

contourplot

Corrplot

corrplot

Heatmap

heatmap

Treemap plot

treemap

Waffle plot

waffle

Alluvial plot

alluvialplot

Scatterplot

scatterplot

Pairplot

pairplot

Bubble plot

bubbleplot

Lollipop plot

lollipopplot

Density plot

densityplot

Distribution plots

distributionplots

Strip chart

stripchart

Jitter plot

jitterplot

Boxplot

boxplot

Violin plot

violinplot

Candlestick plot

candlestick

Dumbbell plot

dumbbellplot

Parliament plot

parliamentplot

Rank Chart

rankchart

Bump Chart

bumpchart