Here's a sample of my data df
group score1 score2
a 12 15
a 11 14
a 24 22
b 34 24
b 14 23
b 33 44
c 11 22
c 23 34
c 32 43
...
I know how to use ggplot2 to make a boxplot comparing group
with score1
and another boxplot comparing group
with score2
.
But how do I make one boxplot where X axis is group
, with boxes for both score1
and score2
?