Created
November 25, 2015 00:26
-
-
Save Swarchal/bc600483525f4ba3a833 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ggplot(data = df_molten, | |
aes(x = variable, y = MouseID, fill = value)) + | |
geom_raster() + | |
xlab("Protein") + | |
scale_fill_distiller(palette = "RdYlBu", trans = "log10") + # better colourmap | |
theme(axis.text.x = element_text(angle = 90, hjust = 1), | |
axis.text.y = element_blank()) + | |
ggtitle("ggplot heatmap") + | |
facet_wrap(~class, scales = "free", ncol = 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment