I would like to create violin plots with aggregated data. My data has a category, a value coloumn and a count coloumn:
data <- data.frame(category = rep(LE
Using stat="identity" and specifying a violinwidth aesthetic appears to work,although I had to put in a fudge factor:
stat="identity"
violinwidth
ggplot(data, aes(x = category, y = value)) + geom_violin(stat="identity",aes(violinwidth=0.2*count))