This question already has an answer here:
I need to plot three values, to make three bars for each value of the X-Axis. My data is:
In the X-Axis must be the column labeled as "m" and for each "m" value I need to plot the correspondent "x","y" and "z" value.
I want to use ggplot2 and I need something like this:
I created my own dataset to demonstrate how to do it:
Data:
Solution:
Output:
If you want the bars one next to the other you need to specify the
dodge
position atgeom_bar
i.e.: