I have a data frame containing exam results where all subquestions are grouped into a questionCategory, and each category has an total point score, and the students actual score.
>exam_results
questionCategory max_points score
1 Analysis 5 0.000
2 Design 18 5.940
3 Implementation 8 4.000
4 Requirements 37 23.786
5 UML 17 7.000
6 UP 15 4.250
I can't quite figure out how to plot the following dataframe in such as way that I can list the max_points and score as two bars for each category using ggplot, but trying to use
ggplot(data=exam_results, aes(x=questionCategory,y=score)) + geom_bar(aes(fill=max_points),stat="identity")
seems to highlight my complete misunderstanding of ggplot's fill?
How can I instead plot these two columns of the dataframe side by side?