ggplot2 alternatives to fill in barplots, occurence of factor in multiple rows
问题 I'm pretty new to R and I have a problem with plotting a barplot out of my data which looks like this: condition answer 2 H 1 H 8 H 5 W 4 M 7 H 9 H 10 H 6 H 3 W The data consists of 100 rows with the conditions 1 to 10, each randomly generated 10 times (10 times condition 1, 10 times condition 8,...). Each of the conditions also has a answer which could be H for Hit, M for Miss or W for wrong. I want to plot the number of Hits for each condition in a barplot (for example 8 Hits out of 10 for