plot - R - Make lines() points/line thickness reflect density of points? -


i know how change thickness of points/lines manually; wish plot 1000+ series on same graph resulting graph has darker or lighter points depending on density of points @ location. ie, more points centered there darker area gets.

what have this:

plot(df[,1],ylim=c(0,1)) for(i in 2:ncol(df)){    lines(df[,i],col='grey',type='p') } 

which gives me following graph. unfortunately there's many points gives me uniform grey line, instead of telling me how these points distributed.

enter image description here


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -