Skip to content
Snippets Groups Projects
Commit 8e277841 authored by hpolvech's avatar hpolvech
Browse files

solution 2c

parent bd99d8c5
No related branches found
No related tags found
No related merge requests found
......@@ -531,7 +531,22 @@ ggplot(expr_DM1, aes(samples, Genes, fill= log1p(counts))) +
</p>
</details>
It s better, but still not perfect!
Now let s use the [viridis color gradient](https://gotellilab.github.io/GotelliLabMeetingHacks/NickGotelli/ViridisColorPalette.html) for this graph.
<details><summary>Solution</summary>
<p>
```{r heatmapViridis}
ggplot(expr_DM1, aes(samples, Genes, fill= log1p(counts))) +
geom_tile() +
scale_fill_viridis_c() +
labs(y="Genes", x = "Samples") +
theme(
axis.text.y = element_text(size= 4),
axis.text.x = element_text(size = 4, angle = 90)
)
```
</p>
</details>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment