create a double bar plot to compare data
0
0
Entering edit mode
5.1 years ago
SeaStar ▴ 50

I created a data frame of data:

data <-

          element      ova.x   testes.x       ova.y    testes.y
1         Dong-1  0.34000000 1.1200000   0.06694795 2.89051799

My goal is to create a bar chart that compares value ova.x,ova.y testes.x,testes.y for the given element obtaining something like this: enter image description here assuming that speciesA is ova.x, testes.x and speciesB is ova.y, testes.y and Gene1 is Ova, gene 2 is testes. I don't know how to plot these data

r R plot bar chart • 1.3k views
ADD COMMENT
0
Entering edit mode

Though I am not an expert. but I think this link may solve your problem http://www.sthda.com/english/wiki/ggplot2-barplots-quick-start-guide-r-software-and-data-visualization

ADD REPLY

Login before adding your answer.

Traffic: 2000 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6