Skip to content

Commit ce183ed

Browse files
authored
Hide some exercises
1 parent 015f1be commit ce183ed

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Tidyverse_ggplot2/lessons/03_ggplot2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ ggplot(bp_plot) +
295295
</p>
296296

297297
***
298+
299+
<!--
298300
**Exercises**
299301
300302
1. Arrange `bp_oe` by `term_percent` in descending order.
@@ -303,6 +305,8 @@ ggplot(bp_plot) +
303305
304306
***
305307
308+
-->
309+
306310
So far we have explored many layers that can be added to any plot with the ggplot2 package. However, we haven't explored the different `geom`s available. The type of data you are plotting will determine the type of `geom` needed, but a nice summary of the main `geom`s is available on the [RStudio ggplot2 cheatsheet](https://rstudio.github.io/cheatsheets/data-visualization.pdf).
307311

308312
Let's explore different `geom`s by creating a couple of different plots. We'll start with a bar plot of the number of genes per category. We can start with the most basic plot by specifying the dataframe, geom, and aesthetics.
@@ -445,6 +449,8 @@ ggplot(bp_plot) +
445449
```
446450

447451
***
452+
453+
<!--
448454
**Exercises**
449455
450456
Based on the number of genes associated with each GO term ("term.size" column) we can categorize them into "small", "large" or "medium" categories. Once we have done that, we want to determine what the spread of p-values is for each category; we can do this by drawing a boxplot.
@@ -467,6 +473,7 @@ Based on the number of genes associated with each GO term ("term.size" column) w
467473
4. Add appropriate labels and `theme()` layers to your liking.
468474
469475
***
476+
-->
470477

471478
## Resources
472479

0 commit comments

Comments
 (0)