[英]ggplot2 not transparent though alpha is used
我有兩個不同的數據框,我想將它們覆蓋在ggplot2中:
plot3<- ggplot(fit3f, aes(x=exp(exp(.fitted)), y=.resid)) +
ggtitle("data points: 3") +
xlab("Amplification") + ylab("res. pear.") +
geom_point(colour="dodgerblue4") +
# ylim(c(0,1)) +
geom_vline(xintercept=150, linetype="dashed", colour="orange", size=2) +
geom_point(data=fit3f_not_irr, aes(exp(exp(.fitted)), y=.resid, alpha = 0.05, colour="firebrick4"), show.legend = FALSE)
但是,它不是透明的。 這是為什么?
alpha = 0.05
進入您的aes(...)
函數調用。 嘗試這個:
geom_point(data=fit3f_not_irr, aes(exp(exp(.fitted)),
y=.resid,
colour="firebrick4"),
alpha = 0.05,
show.legend = FALSE)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.