Hi! I'm quite new to R and ggplot, hence the question. I have already computed a violin plot with the variables of interest (Emotion x Accuracy), however I want the plot to be divided by another variable (group) so that the result is somewhat similar to this (see image) but I have no idea how to.
What I have written is this:
data_wide <- GC[,4:6]
gather(key="Emotion", value="Accuracy", ) %>%
ggplot( aes(x=Emotion, y=Accuracy, fill=Emotion)) +
-then there are other scripts related to aesthetics which are not the main issue-.
Thank you in advance!