有的时候在画图的时候,需要调节一下点或者bar的透明度,看起来更好看一点。...scatterplot without alpha
加上透明度,alpha范围是从0到1,1是原来的颜色,数字越大颜色越深。...rgb还可以提供第四个参数,也就是透明度。...如下所示:
没有透明度:
plot(x = iris$Sepal.Length, iris$Petal.Length,
pch = 18, cex = 2, col = rgb(45,...plot1
修改透明度:
plot(x = iris$Sepal.Length, iris$Petal.Length,
pch = 18, cex = 2, col = rgb(45, 67,121