Now I do this:
d = approx(density(csvdata[,'X'],n=5000),xout=csvdata[,'X'])
dfact = 40/max(d$y)
for(i in 1:nrow(csvdata)) {
d$y[i] = (d$y[i]*dfact)-20
}
What I'm doing here is scaling the density function, which will always be above 0 to display at the bottom of the bottom of my chart, which is at -20 and always goes to the top that is at +20, so I'm more simplified able detect any line irregularities. Now, as you can see, I am doing this, looping, but maybe there are several buildings in it?
rsk82 source
share