Skip to content

Commit ceb5a37

Browse files
committed
Fix links
1 parent 35f02b9 commit ceb5a37

File tree

6 files changed

+21
-23
lines changed

6 files changed

+21
-23
lines changed

R/guide-colorbar.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ NULL
55
#'
66
#' Colour bar guide shows continuous colour scales mapped onto values.
77
#' Colour bar is available with `scale_fill` and `scale_colour`.
8-
#' For more information, see the inspiration for this function:
9-
#' \href{https://www.mathworks.com/help/techdoc/ref/colorbar.html}{Matlab's colorbar function}.
108
#'
119
#' Guides can be specified in each `scale_*` or in [guides()].
1210
#' `guide="legend"` in `scale_*` is syntactic sugar for

README.Rmd

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ knitr::opts_chunk$set(
2222

2323
## Overview
2424

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.
2626

2727
## Installation
2828

@@ -40,7 +40,7 @@ pak::pak("tidyverse/ggplot2")
4040

4141
## Cheatsheet
4242

43-
<a href="https://github.com/rstudio/cheatsheets/blob/master/data-visualization.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/thumbnails/data-visualization-cheatsheet-thumbs.png" width="630" height="252"/></a>
43+
<a href="https://github.com/rstudio/cheatsheets/blob/master/data-visualization.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/thumbnails/data-visualization-cheatsheet-thumbs.png" width="630" height="252"/></a>
4444

4545
## Usage
4646

@@ -52,7 +52,7 @@ It's hard to succinctly describe how ggplot2 works because it embodies a deep ph
5252
#| per gallon are inversely correlated."
5353
library(ggplot2)
5454
55-
ggplot(mpg, aes(displ, hwy, colour = class)) +
55+
ggplot(mpg, aes(displ, hwy, colour = class)) +
5656
geom_point()
5757
```
5858

@@ -61,7 +61,7 @@ ggplot(mpg, aes(displ, hwy, colour = class)) +
6161

6262
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
6363

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.
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.
6565

6666
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/>.
6767

@@ -70,25 +70,25 @@ If you are looking for innovation, look to ggplot2's rich ecosystem of extension
7070
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:
7171

7272
1. The [Data Visualization][r4ds-vis] and
73-
[Communication][r4ds-comm] chapters in
73+
[Communication][r4ds-comm] chapters in
7474
[R for Data Science][r4ds]. R for Data Science is designed to
7575
give you a comprehensive introduction to the
7676
[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
7878
possible.
79-
79+
8080
1. If you'd like to take an online course, try
8181
[Data Visualization in R With ggplot2][oreilly] by Kara Woo.
82-
82+
8383
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
8585
Pedersen.
8686

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]
8989
by Winston Chang. It provides a set of recipes to solve common
9090
graphics problems.
91-
91+
9292
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.
9393

9494
## Getting help
@@ -104,7 +104,7 @@ There are two main places to get help with ggplot2:
104104

105105
[community]: https://forum.posit.co/
106106
[ggplot2-book]: https://ggplot2-book.org
107-
[gg-book]: https://www.amazon.com/Grammar-Graphics-Statistics-Computing/dp/0387245448/ref=as_li_ss_tl
107+
[gg-book]: https://link.springer.com/book/10.1007/0-387-28695-0
108108
[so]: https://stackoverflow.com/questions/tagged/ggplot2?sort=frequent&pageSize=50
109109
[cookbook]: https://r-graphics.org
110110
[r4ds]: https://r4ds.hadley.nz

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ coverage](https://codecov.io/gh/tidyverse/ggplot2/branch/main/graph/badge.svg)](
1515

1616
ggplot2 is a system for declaratively creating graphics, based on [The
1717
Grammar of
18-
Graphics](https://www.amazon.com/Grammar-Graphics-Statistics-Computing/dp/0387245448/ref=as_li_ss_tl).
19-
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.
2121

2222
## Installation
2323

@@ -49,11 +49,13 @@ then add on layers (like `geom_point()` or `geom_histogram()`), scales
4949
``` r
5050
library(ggplot2)
5151

52-
ggplot(mpg, aes(displ, hwy, colour = class)) +
52+
ggplot(mpg, aes(displ, hwy, colour = class)) +
5353
geom_point()
5454
```
5555

56-
<img src="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
58+
per gallon are inversely correlated." />
5759

5860
## Lifecycle
5961

man/figures/README-example-1.png

-43 Bytes
Loading

man/guide_colourbar.Rd

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/extending-ggplot2.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ ggplot(mpg, aes(displ, drv, fill = after_stat(density))) +
370370

371371
## Creating a new geom
372372

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.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.
374374

375375
### A simple geom
376376

0 commit comments

Comments
 (0)