Skip to content

Commit

Permalink
Started replacing shutterstock water-marked images with licenced images.
Browse files Browse the repository at this point in the history
  • Loading branch information
rudeboybert committed Aug 22, 2019
1 parent 4c72a40 commit 654dd92
Show file tree
Hide file tree
Showing 31 changed files with 15 additions and 11 deletions.
12 changes: 7 additions & 5 deletions 01-getting-started.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ For much of this book, we will assume that you are using R via RStudio. First ti
<!--
R: Engine | RStudio: Dashboard
:-------------------------:|:-------------------------:
![](images/ss/111774881.png){ height=1.7in } | ![](images/ss/1128690833.png){ height=1.7in }
-->
![](images/ss/shutterstock_111774881.jpg){ height=2.5in } | ![](images/ss/shutterstock_1128690833.jpg){ height=2.5in }
-->


```{r R-vs-RStudio-1, echo=FALSE, fig.align='center', fig.cap="Analogy of difference between R and RStudio.", out.width='95%', purl=FALSE}
knitr::include_graphics("images/R_vs_RStudio_1.png")
knitr::include_graphics("images/ss/R_vs_RStudio_1.png")
```

More precisely, R is a programming language that runs computations while RStudio is an *integrated development environment (IDE)* that provides an interface by adding many convenient features and tools. So just as the way of having access to a speedometer, rear-view mirrors, and a navigation system makes driving much easier, using RStudio's interface makes using R much easier as well.
Expand Down Expand Up @@ -170,11 +172,11 @@ A good analogy for R packages \index{R packages} is they are like apps you can d
<!--
R: A new phone | R Packages: Apps you can download
:-------------------------:|:-------------------------:
![](images/ss/693573352.png){ height=1.5in } | ![](images/ss/220533046.png){ height=1.5in }
![](images/ss/shutterstock_693573352_cropped.jpg){ height=2.5in } | ![](images/ss/shutterstock_220533046.jpg){ height=2.5in }
-->

```{r R-vs-R-packages, echo=FALSE, fig.align='center', fig.cap="Analogy of R versus R packages.", out.width='90%', purl=FALSE}
knitr::include_graphics("images/R_vs_R_packages.png")
knitr::include_graphics("images/ss/R_vs_R_packages.png")
```

So R is like a new mobile phone: while it has a certain amount of features when you use it for the first time, it doesn't have everything. R packages are like the apps you can download onto your phone from Apple's App Store or Android's Google Play.
Expand Down
8 changes: 4 additions & 4 deletions 09-hypothesis-testing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ promotions_sample %>%

Again, such random shuffling of the gender label only makes sense in our hypothesized universe of no gender discrimination. How could we extend this shuffling of the gender variable to all 48 resumes by hand? One way would be by using standard deck of 52 playing cards, which we display in Figure \@ref(fig:deck-of-cards).

```{r deck-of-cards, echo=FALSE, fig.cap="Standard deck of 52 playing cards.", purl=FALSE, out.width="75%"}
knitr::include_graphics("images/ss/670789453.png")
```{r deck-of-cards, echo=FALSE, fig.cap="Standard deck of 52 playing cards.", purl=FALSE, out.width="100%"}
knitr::include_graphics("images/ss/shutterstock_670789453.jpg")
```

Since half the cards are red and the other half are black, by removing 2 red cards and 2 black cards, we would end up with 24 red cards and 24 black cards. After shuffling these 48 cards as seen in Figure \@ref(fig:shuffling), we can flip the cards over one-by-one, assigning "male" for each red card and "female" for each black card.

```{r shuffling, echo=FALSE, fig.cap="Shuffling deck cards.", purl=FALSE, out.width="75%"}
knitr::include_graphics("images/ss/128283971.png")
```{r shuffling, echo=FALSE, fig.cap="Shuffling a deck of cards.", purl=FALSE, out.width="66%"}
knitr::include_graphics("images/ss/shutterstock_128283971.jpg")
```

<!--
Expand Down
Binary file removed images/R_vs_RStudio_1.png
Binary file not shown.
Binary file removed images/R_vs_R_packages.png
Binary file not shown.
Binary file removed images/high-resolution/Fig2-28.png
Binary file not shown.
Binary file removed images/high-resolution/Fig3-10.png
Binary file not shown.
Binary file removed images/high-resolution/Fig4-6.png
Binary file not shown.
Binary file removed images/high-resolution/Fig4-7.png
Binary file not shown.
Binary file removed images/high-resolution/Fig9.2.png
Binary file not shown.
Binary file removed images/high-resolution/high-resolution.zip
Binary file not shown.
Binary file removed images/ss/111774881.png
Binary file not shown.
Binary file removed images/ss/1128690833.png
Binary file not shown.
Binary file removed images/ss/128283971.png
Binary file not shown.
Binary file removed images/ss/220533046.png
Binary file not shown.
Binary file removed images/ss/670789453.png
Binary file not shown.
Binary file removed images/ss/693573352.png
Binary file not shown.
6 changes: 4 additions & 2 deletions images/ss/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
A catalog of all shutterstock images used can be found on [Google Sheets](https://docs.google.com/spreadsheets/d/1gmapY82wFKvCuY9tSXi4UQeoEfswbhIR-3e4RGUuMKg/edit#gid=1673427429). Note that

* `wrapper_function.png` is an edited version of `560016454.png`
* `head.png` is a composite of `207112555.png` and `1317323615.png`
* `R_vs_RStudio_1.png` is a composite of `shutterstock_111774881.jpg` and `shutterstock_1128690833.jpg`
* `R_vs_R_packages.png` is a composite of `shutterstock_693573352_cropped.jpg` and `shutterstock_220533046.jpg`
* `wrapper_function.png` is an edited version of `shutterstock_560016454.jpg`
* `head.png` is a composite of `shutterstock_207112555.jpg` and `shutterstock_1317323615.jpg`
Binary file added images/ss/R_vs_RStudio_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/R_vs_R_packages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_111774881.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_1128690833.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_128283971.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_1317323615.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_176684936.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_207112555.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_220533046.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_350268308.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_560016454.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_670789453.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ss/shutterstock_693573352.jpg
Binary file added images/ss/shutterstock_693573352_cropped.jpg

0 comments on commit 654dd92

Please sign in to comment.