One quick way is to rbind
the median and mean to the matrix, and specify a different color (with col=
) and shape (with pch=
):
da = rbind(a,var_mean,var_median)
pairs(da,col = c(rep("black",nrow(a)),"blue","red"),
pch= c(rep(20,nrow(a)),3,3),
cex = c(rep(0.5,nrow(a)),1,1)
)
You can't see the median and mean distinctly above because they are quite near one another
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…