Is it possible to get a graph like the following with ggplot2 in R?
ggplot(mydata, aes(x=discrete_1, y=continuous_1)) +
geom_violin(aes(fill=discrete_2, alpha=continuous_2)) +
facet_grid(. ~ discrete_3)
Trying this, it seems their either 'alpha' or 'fill' will override each other?
I'm open to a different solution that achieves the same result (adding alpha to the fill colours proportionally to the value of continuous_2). My values for continuous_2 are always the same across rows with matching values for discrete_2.
Sorry if this is duplicate, I couldn't find anything that addressed this specifically.