我有一个3列矩阵;绘图由基于第1列和第2列值的点组成,但根据第2列(6个不同的组)着色.我可以成功绘制所有点,但是,最后一个绘制组(第6组)被指定为紫色,遮住了其他组的绘制.有没有办法让绘图点更透明?
s <- read.table("/.../parse-output.txt", sep="\t")
dim(s)
[1] 67124 3
x <- s[,1]
y <- s[,2]
z <- s[,3]
cols <- cut(z, 6, labels = c("pink", "red", "yellow", "blue", "green", "purple"))
plot(x, y, main= "Fragment recruitment plot - FR-HIT", ylab = "Percent identity", xlab = "Base pair position", col = as.character(cols), pch=16)