I'm a very beginner in R and not familiar with the syntax. Your help would be very much appreciated.
I have a Data frame with 3 columns and 27 rows.
Gene_Name Cell_line1 Cell_line2
gene1 23 45
gene2 0.6 21
gene3 34 18
---
gene27 45 23
I want to make Grouped Barplot where I have gene names on the X axis and cell_line1 and Cell_line2 values on the Y in different colors.
I was trying to make it with ggplot2
p<- ggplot(data=df, aes(Gene_Names, Cell_line1)) + geom_bar(stat="identity", position = "dodge")+ theme(axis.text.x = element_text(angle = 90, hjust = 1))
Can you correct my code? or suggest something else?
Thanks.