I have a dataframe that I'd like to plot in a violin plot, where the observations are binned into one of two groups: [va_AC == 1] or [va_AC > 1]
.
Is there a way to do this without adding a new column to df to assign it a group?
ggplot(df) +
geom.violin(aes(x=[va_AC == 1] or [va_AC > 1],
y=g_AD))