Skip to content

Commit 047bb56

Browse files
committed
Fix links
1 parent 1edc33a commit 047bb56

18 files changed

+48
-49
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Suggests:
6666
vdiffr (>= 0.3.0)
6767
Enhances: sp
6868
License: MIT + file LICENSE
69-
URL: http://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2
69+
URL: https://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2
7070
BugReports: https://github.com/tidyverse/ggplot2/issues
7171
LazyData: true
7272
Collate:

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ accompanying issue #2890.
681681
## New features
682682

683683
* ggplot2 now works on R 3.1 onwards, and uses the
684-
[vdiffr](https://github.com/lionel-/vdiffr) package for visual testing.
684+
[vdiffr](https://github.com/r-lib/vdiffr) package for visual testing.
685685

686686
* In most cases, accidentally using `%>%` instead of `+` will generate an
687687
informative error (#2400).

R/aes.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ NULL
1919
#' because you can name those directly. The flip side is that you have
2020
#' to use [quasiquotation][rlang::quasiquotation] to program with
2121
#' `aes()`. See a tidy evaluation tutorial such as the [dplyr
22-
#' programming vignette](http://dplyr.tidyverse.org/articles/programming.html)
22+
#' programming vignette](https://dplyr.tidyverse.org/articles/programming.html)
2323
#' to learn more about these techniques.
2424
#'
2525
#' @param x,y,... List of name-value pairs in the form `aesthetic = variable`

R/data.R

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
2323
#' US economic time series
2424
#'
2525
#' This dataset was produced from US economic time series data available from
26-
#' \url{http://research.stlouisfed.org/fred2}. `economics` is in "wide"
26+
#' \url{https://fred.stlouisfed.org/}. `economics` is in "wide"
2727
#' format, `economics_long` is in "long" format.
2828
#'
2929
#' @format A data frame with 574 rows and 6 variables:
3030
#' \describe{
3131
#' \item{date}{Month of data collection}
3232
#' \item{pce}{personal consumption expenditures, in billions of dollars,
33-
#' \url{http://research.stlouisfed.org/fred2/series/PCE}}
33+
#' \url{https://fred.stlouisfed.org/series/PCE}}
3434
#' \item{pop}{total population, in thousands,
35-
#' \url{http://research.stlouisfed.org/fred2/series/POP}}
35+
#' \url{https://fred.stlouisfed.org/series/POP}}
3636
#' \item{psavert}{personal savings rate,
37-
#' \url{http://research.stlouisfed.org/fred2/series/PSAVERT/}}
37+
#' \url{https://fred.stlouisfed.org/series/PSAVERT/}}
3838
#' \item{uempmed}{median duration of unemployment, in weeks,
39-
#' \url{http://research.stlouisfed.org/fred2/series/UEMPMED}}
39+
#' \url{https://fred.stlouisfed.org/series/UEMPMED}}
4040
#' \item{unemploy}{number of unemployed in thousands,
41-
#' \url{http://research.stlouisfed.org/fred2/series/UNEMPLOY}}
41+
#' \url{https://fred.stlouisfed.org/series/UNEMPLOY}}
4242
#' }
4343
#'
4444
"economics"
@@ -88,7 +88,7 @@
8888
#' Fuel economy data from 1999 to 2008 for 38 popular models of cars
8989
#'
9090
#' This dataset contains a subset of the fuel economy data that the EPA makes
91-
#' available on \url{http://fueleconomy.gov}. It contains only models which
91+
#' available on \url{https://fueleconomy.gov/}. It contains only models which
9292
#' had a new release every year between 1999 and 2008 - this was used as a
9393
#' proxy for the popularity of the car.
9494
#'
@@ -159,7 +159,7 @@
159159
#' Letters. December (2007).
160160
#'
161161
#' @format A data frame with 1155 rows and 4 variables
162-
#' @references \url{http://www.stat.berkeley.edu/~brill/Papers/jspifinal.pdf}
162+
#' @references \url{https://www.stat.berkeley.edu/~brill/Papers/jspifinal.pdf}
163163
"seals"
164164

165165
#' 2d density estimate of Old Faithful data
@@ -189,7 +189,7 @@
189189
#' Housing sales in TX
190190
#'
191191
#' Information about the housing market in Texas provided by the TAMU
192-
#' real estate center, \url{http://recenter.tamu.edu/}.
192+
#' real estate center, \url{https://www.recenter.tamu.edu/}.
193193
#'
194194
#' @format A data frame with 8602 observations and 9 variables:
195195
#' \describe{

R/scale-brewer.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#' @description
44
#' The `brewer` scales provides sequential, diverging and qualitative
55
#' colour schemes from ColorBrewer. These are particularly well suited to
6-
#' display discrete values on a map. See \url{http://colorbrewer2.org} for
6+
#' display discrete values on a map. See \url{https://colorbrewer2.org} for
77
#' more information.
88
#'
99
#' @note

R/stat-ellipse.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#'
66
#' @references John Fox and Sanford Weisberg (2011). An \R Companion to
77
#' Applied Regression, Second Edition. Thousand Oaks CA: Sage. URL:
8-
#' \url{http://socserv.socsci.mcmaster.ca/jfox/Books/Companion}
8+
#' \url{https://socialsciences.mcmaster.ca/jfox/Books/Companion/}
99
#' @param level The level at which to draw an ellipse,
1010
#' or, if `type="euclid"`, the radius of the circle to be drawn.
1111
#' @param type The type of ellipse.

README.Rmd

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ knitr::opts_chunk$set(
2020

2121
## Overview
2222

23-
ggplot2 is a system for declaratively creating graphics, based on [The Grammar of Graphics](https://amzn.to/2ef1eWp). You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.
23+
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.
2424

2525
## Installation
2626

@@ -68,19 +68,20 @@ If you are new to ggplot2 you are better off starting with a systematic introduc
6868
[Graphics for communication][r4ds-comm] chapters in
6969
[R for Data Science][r4ds]. R for Data Science is designed to
7070
give you a comprehensive introduction to the
71-
[tidyverse](https://tidyverse.org), and these two chapters will
71+
[tidyverse](https://www.tidyverse.org), and these two chapters will
7272
get you up to speed with the essentials of ggplot2 as quickly as
7373
possible.
7474

75-
1. If you'd like to take an online course, try
76-
[Data Visualization in R With ggplot2][oreilly] by Kara Woo.
75+
1. If you'd like to follow a webinar, try
76+
[Plotting Anything with ggplot2][https://youtu.be/h29g21z0a68] by Thomas Lin
77+
Pedersen.
7778

7879
1. If you want to dive into making common graphics as quickly
7980
as possible, I recommend [The R Graphics Cookbook][cookbook]
8081
by Winston Chang. It provides a set of recipes to solve common
8182
graphics problems.
8283

83-
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. The book is not available for free, but you can find the complete source for the book at <https://github.com/hadley/ggplot2-book>.
84+
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.
8485

8586
## Getting help
8687

@@ -94,10 +95,10 @@ There are two main places to get help with ggplot2:
9495
created a reproducible example that illustrates your problem.
9596

9697
[community]: https://community.rstudio.com/
97-
[ggplot2-book]: https://amzn.to/2fncG50
98-
[gg-book]: https://amzn.to/2ef1eWp
98+
[ggplot2-book]: https://ggplot2-book.org
99+
[gg-book]: https://www.amazon.com/Grammar-Graphics-Statistics-Computing/dp/0387245448/ref=as_li_ss_tl
99100
[so]: https://stackoverflow.com/questions/tagged/ggplot2?sort=frequent&pageSize=50
100-
[cookbook]: https://amzn.to/2TU78ip
101+
[cookbook]: https://r-graphics.org
101102
[r4ds]: https://r4ds.had.co.nz
102103
[r4ds-vis]: https://r4ds.had.co.nz/data-visualisation.html
103104
[r4ds-comm]: https://r4ds.had.co.nz/graphics-for-communication.html

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ Status](https://img.shields.io/codecov/c/github/tidyverse/ggplot2/master.svg)](h
1212
## Overview
1313

1414
ggplot2 is a system for declaratively creating graphics, based on [The
15-
Grammar of Graphics](https://amzn.to/2ef1eWp). You provide the data,
16-
tell ggplot2 how to map variables to aesthetics, what graphical
17-
primitives to use, and it takes care of the details.
15+
Grammar of
16+
Graphics](https://www.amazon.com/Grammar-Graphics-Statistics-Computing/dp/0387245448/ref=as_li_ss_tl).
17+
You provide the data, tell ggplot2 how to map variables to aesthetics,
18+
what graphical primitives to use, and it takes care of the details.
1819

1920
## Installation
2021

@@ -79,27 +80,24 @@ documentation pages. Currently, there are three good places to start:
7980
communication](https://r4ds.had.co.nz/graphics-for-communication.html)
8081
chapters in [R for Data Science](https://r4ds.had.co.nz). R for Data
8182
Science is designed to give you a comprehensive introduction to the
82-
[tidyverse](https://tidyverse.org), and these two chapters will get
83-
you up to speed with the essentials of ggplot2 as quickly as
83+
[tidyverse](https://www.tidyverse.org), and these two chapters will
84+
get you up to speed with the essentials of ggplot2 as quickly as
8485
possible.
8586

86-
2. If you’d like to take an online course, try [Data Visualization in R
87-
With ggplot2](https://shop.oreilly.com/product/0636920052807.do) by
88-
Kara Woo.
87+
2. If you’d like to follow a webinar, try \[Plotting Anything with
88+
ggplot2\]\[<https://youtu.be/h29g21z0a68>\] by Thomas Lin Pedersen.
8989

9090
3. If you want to dive into making common graphics as quickly as
9191
possible, I recommend [The R Graphics
92-
Cookbook](https://amzn.to/2TU78ip) by Winston Chang. It provides a
92+
Cookbook](https://r-graphics.org) by Winston Chang. It provides a
9393
set of recipes to solve common graphics problems.
9494

9595
If you’ve mastered the basics and want to learn more, read [ggplot2:
96-
Elegant Graphics for Data Analysis](https://amzn.to/2fncG50). It
96+
Elegant Graphics for Data Analysis](https://ggplot2-book.org). It
9797
describes the theoretical underpinnings of ggplot2 and shows you how all
9898
the pieces fit together. This book helps you understand the theory that
9999
underpins ggplot2, and will help you create new types of graphics
100-
specifically tailored to your needs. The book is not available for free,
101-
but you can find the complete source for the book at
102-
<https://github.com/hadley/ggplot2-book>.
100+
specifically tailored to your needs.
103101

104102
## Getting help
105103

man/aes.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/economics.Rd

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

man/figures/README-example-1.png

13.8 KB
Loading

man/ggplot2-package.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mpg.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/scale_brewer.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/seals.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/stat_ellipse.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/txhousing.Rd

Lines changed: 1 addition & 1 deletion
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
@@ -326,7 +326,7 @@ ggplot(mpg, aes(displ, drv, fill = stat(density))) +
326326

327327
## Creating a new geom
328328

329-
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](http://amzn.com/B00I60M26G) by Paul Murrell. It tells you everything you need to know about drawing with grid.
329+
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.
330330

331331
### A simple geom
332332

0 commit comments

Comments
 (0)