All Projects → tidyverse → Ggplot2

tidyverse / Ggplot2

Licence: other
An implementation of the Grammar of Graphics in R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Ggplot2

Bokeh
Interactive Data Visualization in the browser, from Python
Stars: ✭ 15,822 (+204.15%)
Mutual labels:  data-visualisation, visualisation
Biojs
🔬A library of JavaScript components to represent biological data
Stars: ✭ 438 (-91.58%)
Mutual labels:  visualisation
covid-dashboard
Help welcomed if you have expertise in public health web technology, data modeling and munging, or visualization.
Stars: ✭ 106 (-97.96%)
Mutual labels:  visualisation
Stroom
Stroom is a highly scalable data storage, processing and analysis platform.
Stars: ✭ 344 (-93.39%)
Mutual labels:  visualisation
Floweaver
View flow data as Sankey diagrams
Stars: ✭ 266 (-94.89%)
Mutual labels:  data-visualisation
Visdat
Preliminary Exploratory Visualisation of Data
Stars: ✭ 377 (-92.75%)
Mutual labels:  visualisation
jsvectormap
A lightweight JavaScript library for creating interactive maps and pretty data visualization.
Stars: ✭ 163 (-96.87%)
Mutual labels:  data-visualisation
Simd Visualiser
A tool to graphically visualize SIMD code
Stars: ✭ 459 (-91.18%)
Mutual labels:  visualisation
Iris
A powerful, format-agnostic, and community-driven Python package for analysing and visualising Earth science data
Stars: ✭ 418 (-91.96%)
Mutual labels:  visualisation
Spectralizer
Audio visualizer plugin for obs-studio
Stars: ✭ 332 (-93.62%)
Mutual labels:  visualisation
Dvf App
Exploration des données DVF
Stars: ✭ 325 (-93.75%)
Mutual labels:  visualisation
Vim Buffet
IDE-like Vim tabline
Stars: ✭ 304 (-94.16%)
Mutual labels:  visualisation
See
🎨 Visualisation toolbox for beautiful and publication-ready figures
Stars: ✭ 377 (-92.75%)
Mutual labels:  visualisation
Krane
Kubernetes RBAC static Analysis & visualisation tool
Stars: ✭ 254 (-95.12%)
Mutual labels:  visualisation
Nohboard
A Keyboard Visualizer
Stars: ✭ 441 (-91.52%)
Mutual labels:  visualisation
census-100-people
Census 2016: This is Australia as 100 people
Stars: ✭ 13 (-99.75%)
Mutual labels:  visualisation
Leaflet Velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 309 (-94.06%)
Mutual labels:  visualisation
Rpd
👌 A Minimal Engine for creating Node-Based Visual Programming User Interfaces
Stars: ✭ 370 (-92.89%)
Mutual labels:  visualisation
Tmap
R package for thematic maps
Stars: ✭ 505 (-90.29%)
Mutual labels:  visualisation
Vue Chartjs
📊 Vue.js wrapper for Chart.js
Stars: ✭ 4,554 (-12.46%)
Mutual labels:  visualisation

ggplot2

R-CMD-check Codecov test coverage CRAN_Status_Badge

Overview

ggplot2 is a system for declaratively creating graphics, based on The Grammar of Graphics. You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.

Installation

# The easiest way to get ggplot2 is to install the whole tidyverse:
install.packages("tidyverse")

# Alternatively, install just ggplot2:
install.packages("ggplot2")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("tidyverse/ggplot2")

Cheatsheet

Usage

It’s hard to succinctly describe how ggplot2 works because it embodies a deep philosophy of visualisation. However, in most cases you start with ggplot(), supply a dataset and aesthetic mapping (with aes()). You then add on layers (like geom_point() or geom_histogram()), scales (like scale_colour_brewer()), faceting specifications (like facet_wrap()) and coordinate systems (like coord_flip()).

library(ggplot2)

ggplot(mpg, aes(displ, hwy, colour = class)) + 
  geom_point()

Lifecycle

lifecycle

ggplot2 is now over 10 years old and is used by hundreds of thousands of people to make millions of plots. That means, by-and-large, ggplot2 itself changes relatively little. When we do make changes, they will be generally to add new functions or arguments rather than changing the behaviour of existing functions, and if we do make changes to existing behaviour we will do them for compelling reasons.

If you are looking for innovation, look to ggplot2’s rich ecosystem of extensions. See a community maintained list at https://exts.ggplot2.tidyverse.org/gallery/.

Learning ggplot2

If you are new to ggplot2 you are better off starting with a systematic introduction, rather than trying to learn from reading individual documentation pages. Currently, there are three good places to start:

  1. The Data Visualisation and Graphics for communication chapters in R for Data Science. R for Data Science is designed to give you a comprehensive introduction to the tidyverse, and these two chapters will get you up to speed with the essentials of ggplot2 as quickly as possible.

  2. If you’d like to take an online course, try Data Visualization in R With ggplot2 by Kara Woo.

  3. If you’d like to follow a webinar, try Plotting Anything with ggplot2 by Thomas Lin Pedersen.

  4. If you want to dive into making common graphics as quickly as possible, I recommend The R Graphics Cookbook by Winston Chang. It provides a set of recipes to solve common graphics problems.

If you’ve mastered the basics and want to learn more, read ggplot2: Elegant Graphics for Data Analysis. It describes the theoretical underpinnings of ggplot2 and shows you how all the pieces fit together. This book helps you understand the theory that underpins ggplot2, and will help you create new types of graphics specifically tailored to your needs.

Getting help

There are two main places to get help with ggplot2:

  1. The RStudio community is a friendly place to ask any questions about ggplot2.

  2. Stack Overflow is a great source of answers to common ggplot2 questions. It is also a great place to get help, once you have created a reproducible example that illustrates your problem.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].