You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.Rmd
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ knitr::opts_chunk$set(
22
22
23
23
## Overview
24
24
25
-
ggplot2 is a system for declaratively creating graphics, based on [The Grammar of Graphics][gg-book]. You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.
25
+
ggplot2 is a system for declaratively creating graphics, based on [The Grammar of Graphics][gg-book]. You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.
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.
64
+
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.
65
65
66
66
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/>.
67
67
@@ -70,25 +70,25 @@ If you are looking for innovation, look to ggplot2's rich ecosystem of extension
70
70
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:
71
71
72
72
1. The [Data Visualization][r4ds-vis] and
73
-
[Communication][r4ds-comm] chapters in
73
+
[Communication][r4ds-comm] chapters in
74
74
[R for Data Science][r4ds]. R for Data Science is designed to
75
75
give you a comprehensive introduction to the
76
76
[tidyverse](https://www.tidyverse.org), and these two chapters will
77
-
get you up to speed with the essentials of ggplot2 as quickly as
77
+
get you up to speed with the essentials of ggplot2 as quickly as
78
78
possible.
79
-
79
+
80
80
1. If you'd like to take an online course, try
81
81
[Data Visualization in R With ggplot2][oreilly] by Kara Woo.
82
-
82
+
83
83
1. If you'd like to follow a webinar, try
84
-
[Plotting Anything with ggplot2](https://youtu.be/h29g21z0a68) by Thomas Lin
84
+
[Plotting Anything with ggplot2](https://youtu.be/h29g21z0a68) by Thomas Lin
85
85
Pedersen.
86
86
87
-
1. If you want to dive into making common graphics as quickly
88
-
as possible, I recommend [The R Graphics Cookbook][cookbook]
87
+
1. If you want to dive into making common graphics as quickly
88
+
as possible, I recommend [The R Graphics Cookbook][cookbook]
89
89
by Winston Chang. It provides a set of recipes to solve common
90
90
graphics problems.
91
-
91
+
92
92
If you've mastered the basics and want to learn more, read [ggplot2: Elegant Graphics for Data Analysis][ggplot2-book]. 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.
93
93
94
94
## Getting help
@@ -104,7 +104,7 @@ There are two main places to get help with ggplot2:
You provide the data, tell ggplot2 how to map variables to aesthetics,
20
-
what graphical primitives to use, and it takes care of the details.
18
+
Graphics](https://link.springer.com/book/10.1007/0-387-28695-0). You
19
+
provide the data, tell ggplot2 how to map variables to aesthetics, what
20
+
graphical primitives to use, and it takes care of the details.
21
21
22
22
## Installation
23
23
@@ -49,11 +49,13 @@ then add on layers (like `geom_point()` or `geom_histogram()`), scales
49
49
```r
50
50
library(ggplot2)
51
51
52
-
ggplot(mpg, aes(displ, hwy, colour=class)) +
52
+
ggplot(mpg, aes(displ, hwy, colour=class)) +
53
53
geom_point()
54
54
```
55
55
56
-
<imgsrc="man/figures/README-example-1.png"alt="Scatterplot of engine displacement versus highway miles per gallon, for 234 cars coloured by 7 'types' of car. The displacement and miles per gallon are inversely correlated." />
56
+
<img src="man/figures/README-example-1.png" alt="Scatterplot of engine displacement versus highway miles per
57
+
gallon, for 234 cars coloured by 7 'types' of car. The displacement and miles
It's harder to create a new geom than a new stat because you also need to know some grid. ggplot2 is built on top of grid, so you'll need to know the basics of drawing with grid. If you're serious about adding a new geom, I'd recommend buying [R graphics](https://www.amazon.com/dp/B00I60M26G/ref=cm_sw_su_dp) by Paul Murrell. It tells you everything you need to know about drawing with grid.
373
+
It's harder to create a new geom than a new stat because you also need to know some grid. ggplot2 is built on top of grid, so you'll need to know the basics of drawing with grid. If you're serious about adding a new geom, I'd recommend buying [R graphics](https://www.routledge.com/R-Graphics-Third-Edition/Murrell/p/book/9781498789059) by Paul Murrell. It tells you everything you need to know about drawing with grid.
0 commit comments