Entering edit mode
4.4 years ago
kousi31
▴
100
I wish to visualize the differences in expression between "gene types" (LncRNAs and mRNAs) through box plot. I prepared the dataset with normalised read counts for differentially expressed genes as Gene control1 control2 treatment1 treatment2 treatment3 treatment4 type. Where type specifies the Lncrna and mrna.
I saw tutorials to plot based on sample and treatment conditions. But I wish to plot based on gene_type Can anyone post a tutorial link on how to do it. Thank you.
Thank you very much. I will try this
How to add median values to the plot..? Should I create a new object to use in geom_text?..
I found this example but could not replicate it.
It's a bit late, this is for future reference:
For adding median:
For
mean
, replacemedian
withmean
instat_summary
function. This page is helpful: https://ggplot2.tidyverse.org/reference/stat_summary.html