# plot randomly distributed data
plot(rnorm(20), col='black')
# create a transparent blue colour for plotting
mycol <- ch_col_transparent('blue', 100)
# plot more random points in transparent blue colour
points(rnorm(20),col = mycol)
# plot randomly distributed data
plot(rnorm(20), col = 'blue')
# create two transparent colour for plotting
mycol <- ch_col_transparent(c('green',"red"), c(100, 200))
# plot more random points in transparent colours
points(rnorm(20), col = mycol[2])
Run the code above in your browser using DataLab