Hi, I have this dataframe from RNAseq enrichment pathways : 4 columns (Module, Pathway, OR, adjusted p=value) and 83 rows (enriched pathways)
Module Pathway OR Adjusted p-value
Gene_atlas WholeBlood 9.035869654 0.005206627
Gene_atlas CD14+_Monocytes 3.610643472 0.036066265
GO_Biological Process GO:0045321_leukocyte activation 4.316600829 0.003847901
I have plot this data with ggplot2. This is my R code :
gplot(my_data_C2C1, aes(x = reorder(Pathway, Adjusted.p.value), y = -log10(Adjusted.p.value), fill = Module)) + geom_bar(stat = "identity")
But I do no see correctly my pathway names. So, I would like to flip my data :
ggplot(my_data_C2C1, aes(x = reorder(Pathway, Adjusted.p.value), y = -log10(Adjusted.p.value), fill = Module)) + geom_bar(stat = "identity") + coord_flip()
I see better the pathway names but no totally and the bars have disapeared.
How can I reduce the police size of my pathway names and display the bars ?
Thans a lot for your help,
Best,
Jessica
The example dataset in your post works fine for both scripts - if you can't see the bars you probably need to make the display window larger.
Yes, the windows was too small ... Sorry ! Many thanks for your help ! It's perfect
If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.