Skip to content

Commit

Permalink
Updates to whole game intro + dataviz chapter (#932)
Browse files Browse the repository at this point in the history
* Streamline narrative for new chapters and part name

* Add to do note to add sizing for faceted plots

* Minor edits, function updates, figure alt text

* Revert references to vars() in facets, use formula

* Spell check, colo*u*r, comma after r in chunk def

* Streamline fig.alt language

* If eval = FALSE, don't need fig.alt

* Fix sentence fragment
  • Loading branch information
mine-cetinkaya-rundel committed Mar 19, 2021
1 parent 588f70a commit 1eee408
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 66 deletions.
3 changes: 3 additions & 0 deletions communicate-plots.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,8 @@ You can learn more about `ggsave()` in the documentation.

### Figure sizing

<!--# TO DO: Add something about faceted plots here. -->

The biggest challenge of graphics in R Markdown is getting your figures the right size and shape.
There are five main options that control figure sizing: `fig.width`, `fig.height`, `fig.asp`, `out.width` and `out.height`.
Image sizing is challenging because there are two sizes (the size of the figure created by R and the size at which it is inserted in the output document), and multiple ways of specifying the size (i.e., height, width, and aspect ratio: pick two of three).
Expand Down Expand Up @@ -688,3 +690,4 @@ Unfortunately, the book is not available online for free, although you can find
Another great resource is the ggplot2 extensions gallery <https://exts.ggplot2.tidyverse.org/gallery/>.
This site lists many of the packages that extend ggplot2 with new geoms and scales.
It's a great place to start if you're trying to do something that seems hard with ggplot2.

Loading

0 comments on commit 1eee408

Please sign in to comment.