Hi, I'm very new to R and am trying to make a Grouped Violin Plot using this code that I have found others have recommended online:
data %>%
drop_na()%>%
ggplot(aes(x=Perspective,
y=Values,
fill=Study))+
geom_violin()
My "Study" variable is a binary variable with two options, representing two separate studies I have conducted. Whenever I run the code, I just get a black and white graph showing my x and y axis, no grouping variable. I think maybe it's because I have fewer observations (about 20 less participants) in one group (Study: 1) than I do in the other (Study: 2), but I'm not sure. Is there any way to get around this with unequal sample sizes, if this is indeed the problem?