相关疑难解决方法(0)

任何方法使散点图中的绘图点在R中更加透明?

我有一个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) 
Run Code Online (Sandbox Code Playgroud)

plot alpha r ggplot2

56
推荐指数
5
解决办法
10万
查看次数

标签 统计

alpha ×1

ggplot2 ×1

plot ×1

r ×1