on-internet
← Community

Some legend elements disappear when points plotted with alpha<1 with ggplot

Stack Overflow ·

This plot is generated with alpha = 0.5 for the points. In the legend most of the point shapes are not displayed on-screen. The fix suggested here doesn't work. Full code for this display: qq <- data.table(LSGrp = factor(1:4), Incent=1:4, Size=1:4, LnNum = 1:4, Actual=4:1, Age=10:13) ggplot(data=qq, aes(x=Incent, y=Actual, fill=Age, shape=LSGrp, size=LnNum) ) + geom_point(col='black', alpha=0.5) + scale_fill_distiller(type='seq', palette='Spectral', guide='colorbar') + scale_shape_manual(values=c(21:24)) + guides(size=guide_legend(override.aes=list(shape=21, title='Ln Num', alpha=1)), shape=gu

Comments

Sign in or sign up to comment and upvote.

No comments yet.