Skip to content

Commit

Permalink
Fix axis labels with built-in themes
Browse files Browse the repository at this point in the history
  • Loading branch information
mblue9 committed Oct 3, 2019
1 parent 230424c commit 7075f01
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions intro_r_biologists.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -511,17 +511,17 @@ ggplot(data = mygenes_counts, mapping = aes(x = Group, y = log2(Count + 1), colo
geom_jitter() +
facet_wrap(~ gene_symbol) +
labs(x = "Cell type and stage", y = "Count", title = "Mammary gland RNA-seq data") +
theme(axis.text.x = element_text(angle = 90)) +
theme_bw()
theme_bw() +
theme(axis.text.x = element_text(angle = 90))
```

```{r}
ggplot(data = mygenes_counts, mapping = aes(x = Group, y = log2(Count + 1), colour = Group)) +
geom_jitter() +
facet_wrap(~ gene_symbol) +
labs(x = "Cell type and stage", y = "Count", title = "Mammary gland RNA-seq data") +
theme(axis.text.x = element_text(angle = 90)) +
theme_minimal()
theme_minimal() +
theme(axis.text.x = element_text(angle = 90))
```

There are many themes available, you can see some in the [R graph gallery](https://www.r-graph-gallery.com/192-ggplot-themes/).
Expand Down
34 changes: 17 additions & 17 deletions intro_r_biologists.nb.html

Large diffs are not rendered by default.

0 comments on commit 7075f01

Please sign in to comment.