Skip to content

Commit 37a1abd

Browse files
cleaned additional res in viz; fixed minor errors in intro
1 parent 22fe5aa commit 37a1abd

File tree

3 files changed

+45
-13
lines changed

3 files changed

+45
-13
lines changed

intro.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ before you can use it. The place from which we will load it is called an R *pack
220220
An R package \index{package} is a collection of functions that can be used in addition to the
221221
built-in R package functions once loaded. The `read_csv` function, in
222222
particular, can be made accessible by loading
223-
[the `tidyverse` R package](https://tidyverse.tidyverse.org/) [@tidyverse,@wickham2019tidverse]
223+
[the `tidyverse` R package](https://tidyverse.tidyverse.org/) [@tidyverse; @wickham2019tidverse]
224224
using the `library` function. \index{library} The `tidyverse` \index{tidyverse} package contains many
225225
functions that we will use throughout this book to load, clean, wrangle,
226226
and visualize data.

references.bib

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,3 +394,24 @@ @Manual{tidyselect
394394
author = {Lionel Henry and Hadley Wickham},
395395
year = {2021},
396396
url = {https://tidyselect.r-lib.org/}}
397+
398+
@Manual{ggplot,
399+
title = {{ggplot2 R package}},
400+
author = {Hadley Wickham and Winston Chang and Lionel Henry and Thomas Lin Pederson and Kohske Takahashi and Claus Wilke and Kara Woo and Hiroaki Yutani and Dewey Dunnington},
401+
year = {2021},
402+
url = {https://ggplot2.tidyverse.org/}}
403+
404+
@Manual{lubridate,
405+
title = {{lubridate R package}},
406+
author = {Vitalie Spinu and Garrett Grolemund and Hadley Wickham},
407+
year = {2021},
408+
url = {https://lubridate.tidyverse.org/}}
409+
410+
@article{lubridatepaper,
411+
title = {Dates and times made easy with {lubridate}},
412+
author = {Garrett Grolemund and Hadley Wickham},
413+
year = {2011},
414+
journal = {Journal of Statistical Software},
415+
volume = {40},
416+
number = {3},
417+
pages = {1--25}}

viz.Rmd

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Note that it is important that the vector given to `xlim` must be of the same
384384
type as the data that is mapped to that axis.
385385
Here, we have mapped a date to the x-axis,
386386
and so we need to use the `date` function
387-
(from the `tidyverse` `lubridate` R package)
387+
(from the `tidyverse` [`lubridate` R package](https://lubridate.tidyverse.org/) [@lubridate; @lubridatepaper])
388388
to convert the character strings we provide to `c` to `date` vectors.
389389

390390
> **Note:** `lubridate` is a package that is installed by the `tidyverse` metapackage,
@@ -1517,15 +1517,26 @@ please follow the instructions for computer setup needed to run the worksheets
15171517
found in Chapter \@ref(move-to-your-own-machine).
15181518

15191519
## Additional resources
1520-
- The [`ggplot2` page on the Tidyverse website](https://ggplot2.tidyverse.org) is where you should look if you want to learn more about the functions in this chapter, the full set of arguments you can use, and other related functions. The site also provides a very nice cheat sheet that summarizes many of the data wrangling functions from this chapter.
1521-
- The [Fundamentals of Data Visualization](https://clauswilke.com/dataviz/) has a wealth of information on designing effective visualizations. It is not specific to any particular programming language or library. If you want to improve your visualization skills, this is the next place to look.
1522-
- [*R for Data Science*](https://r4ds.had.co.nz/) has a chapter on [creating visualizations using `ggplot2`](https://r4ds.had.co.nz/data-visualisation.html). This reference is specific to R and `ggplot2`, but provides a much more detailed introduction to the full set of tools that `ggplot2` provides. This chapter is where you should look if you want to learn how to make more intricate visualizations in `ggplot2` than what is included in this chapter.
1520+
- The [`ggplot2` R package page](https://ggplot2.tidyverse.org) [@ggplot] is
1521+
where you should look if you want to learn more about the functions in this
1522+
chapter, the full set of arguments you can use, and other related functions.
1523+
The site also provides a very nice cheat sheet that summarizes many of the data
1524+
wrangling functions from this chapter.
1525+
- The *Fundamentals of Data Visualization* [@wilkeviz] has
1526+
a wealth of information on designing effective visualizations. It is not
1527+
specific to any particular programming language or library. If you want to
1528+
improve your visualization skills, this is the next place to look.
1529+
- *R for Data Science* [@wickham2016r] has a [chapter on creating visualizations using
1530+
`ggplot2`](https://r4ds.had.co.nz/data-visualisation.html). This reference is
1531+
specific to R and `ggplot2`, but provides a much more detailed introduction to
1532+
the full set of tools that `ggplot2` provides. This chapter is where you should
1533+
look if you want to learn how to make more intricate visualizations in
1534+
`ggplot2` than what is included in this chapter.
15231535
- The [`theme` function documentation](https://ggplot2.tidyverse.org/reference/theme.html)
1524-
is an excellent reference to see how you can fine tune the non-data aspects
1525-
of your visualization.
1526-
- [*R for Data Science*](https://r4ds.had.co.nz/) has a chapter on
1527-
[dates and times](https://r4ds.had.co.nz/dates-and-times.html).
1528-
This chapter is where you should look if you want to learn about `date` vectors,
1529-
including how to create them,
1530-
and how to use them to effectively handle durations, periods and intervals
1531-
using the `lubridate` package.
1536+
is an excellent reference to see how you can fine tune the non-data aspects
1537+
of your visualization.
1538+
- *R for Data Science* has a chapter on [dates and
1539+
times](https://r4ds.had.co.nz/dates-and-times.html). This chapter is where
1540+
you should look if you want to learn about `date` vectors, including how to
1541+
create them, and how to use them to effectively handle durations, periods and
1542+
intervals using the `lubridate` package.

0 commit comments

Comments
 (0)