Create Elegant Data Visualisations Using The Grammar of Graphics - Ggplot2
Create Elegant Data Visualisations Using The Grammar of Graphics - Ggplot2
LINKS
View on CRAN
Browse source
ggplot2 code
Report a bug
Learn more
Extensions
Overview LICENSE
Contributing
Installation guide
Code of conduct
# The easiest way to get ggplot2 is to install the w
install.packages("tidyverse") C I T AT I O N
Citing ggplot2
# Alternatively, install just ggplot2:
install.packages("ggplot2")
DEVELOPERS
# Or the development version from GitHub:
# install.packages("pak") Hadley
ggplot2
pak::pak("tidyverse/ggplot2")
3.4.4 Wickham
Author
Winston Chang
Cheatsheet Author
Lionel Henry
Author
Thomas Lin
Pedersen
Author,
maintainer
Kohske
Takahashi
Author
Usage Claus Wilke
Author
It’s hard to succinctly describe how ggplot2 works because it
embodies a deep philosophy of visualisation. However, in Kara Woo
most cases you start with ggplot() , supply a dataset and Author
aesthetic mapping (with aes() ). You then add on layers (like Hiroaki Yutani
geom_point() or geom_histogram() ), scales (like Author
scale_colour_brewer() ), faceting specifications (like Dewey
facet_wrap() ) and coordinate systems (like Dunnington
coord_flip() ). Author
Lifecycle
lifecycle stable
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:
Getting help
There are two main places to get help with ggplot2:
Developed by Hadley Wickham, Winston Chang, Lionel Henry, Thomas Lin Site built with
Pedersen, Kohske Takahashi, Claus Wilke, Kara Woo, Hiroaki Yutani, Dewey pkgdown
Dunnington, . 2.0.7.