Skip to content

Commit ebc312f

Browse files
Merge pull request #721 from jhudsl/viz_sum_25
Viz sum 25
2 parents 015008d + b43bbc5 commit ebc312f

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

modules/Data_Visualization/Data_Visualization.Rmd

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ opts_chunk$set(echo = TRUE,
1616
comment = "")
1717
library(tidyverse)
1818
library(tidyr)
19-
library(emo)
2019
```
2120

2221
## Recap
@@ -454,7 +453,7 @@ A. `%>%`
454453

455454
B. `&`
456455

457-
C. `+
456+
C. `+`
458457

459458
## Summary
460459

@@ -474,7 +473,9 @@ C. `+
474473

475474
💻 [Lab](https://jhudatascience.org/intro_to_r/modules//Data_Visualization/lab/Data_Visualization_Lab.Rmd)
476475

477-
📃[Day 7 Cheatsheet](https://jhudatascience.org/intro_to_r//modules/cheatsheets/Day-7.pdf)
476+
📃 [Day 7 Cheatsheet](https://jhudatascience.org/intro_to_r//modules/cheatsheets/Day-7.pdf)
477+
478+
📃 [Posit's `ggplot2` Cheatsheet](https://rstudio.github.io/cheatsheets/data-visualization.pdf)
478479

479480
## theme() function:
480481

@@ -779,7 +780,7 @@ food_bar +
779780

780781
## Tip - Check what you plot {.codesmall}
781782

782-
`r emo::ji("warning")` May not be plotting what you think you are! `r emo::ji("warning")`
783+
:warning: May not be plotting what you think you are! :warning:
783784

784785
```{r, fig.width=5 , fig.height=3, fig.align='center'}
785786
ggplot(food, aes(x = item_ID,
@@ -961,6 +962,7 @@ B. Use `facet_grid()` to split the plot up
961962
- `facet_wrap()` allows for a `scales = "free"` argument so that you can have a different axis scale for different plots
962963
- use `fill` to fill in boxplots
963964

965+
964966
## Good practices for plots
965967

966968
Check out this [guide](https://jhudatascience.org/tidyversecourse/dataviz.html#making-good-plots) for more information!
@@ -971,9 +973,11 @@ Check out this [guide](https://jhudatascience.org/tidyversecourse/dataviz.html#m
971973

972974
💻 [Lab](https://jhudatascience.org/intro_to_r/modules//Data_Visualization/lab/Data_Visualization_Lab.Rmd)
973975

974-
📃[Day 7 Cheatsheet](https://jhudatascience.org/intro_to_r//modules/cheatsheets/Day-7.pdf)
976+
📃 [Day 7 Cheatsheet](https://jhudatascience.org/intro_to_r//modules/cheatsheets/Day-7.pdf)
977+
978+
📃 [Posit's theme cheatsheet](https://github.com/claragranell/ggplot2/blob/main/ggplot_theme_system_cheatsheet.pdf)
975979

976-
📃[Posit's theme cheatsheet](https://github.com/claragranell/ggplot2/blob/main/ggplot_theme_system_cheatsheet.pdf)
980+
📃 [Posit's `ggplot2` Cheatsheet](https://rstudio.github.io/cheatsheets/data-visualization.pdf)
977981

978982
```{r, fig.alt="The End", out.width = "50%", echo = FALSE, fig.align='center'}
979983
knitr::include_graphics(here::here("images/the-end-g23b994289_1280.jpg"))

modules/Data_Visualization/lab/Data_Visualization_Lab_Key.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bike_agg
3838

3939
### 1.1
4040

41-
Use the `ggplot2` package to make plot of average length of lanes (`lane_avg_length`; y-axis) for each year (`dateInstalled`; x-axis). You can use lines layer (`+ geom_line()`) or points layer (`+ geom_point()`), or both!
41+
Use the object you just created (`bike_agg`) and the `ggplot2` package to make plot of average length of lanes (`lane_avg_length`; y-axis) for each year (`dateInstalled`; x-axis). You can use lines layer (`+ geom_line()`) or points layer (`+ geom_point()`), or both!
4242

4343
Assign the plot to variable `my_plot`. Type `my_plot` in the console to have it displayed.
4444

@@ -81,7 +81,7 @@ Use the `scale_x_continuous()` function to plot the x axis with the following br
8181
```
8282
# General format
8383
my_plot<- my_plot +
84-
scale_x_continuous(?????)
84+
scale_x_continuous(breaks = ?????)
8585
```
8686

8787
```{r 1.3response}

0 commit comments

Comments
 (0)