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.
Comments
Post a Comment