inst/scripts/speedvar.q

with(aircraft, {
hw <- nnbr(Speed, 30)
hw <- hw/exp(mean(log(hw)))
par(mfrow=c(1,2))
sm.density(Speed, yht=0.0022, positive=TRUE)
sm.density(Speed, yht=0.0022, xlim=c(-700,4000), h.weights=hw, nbins=0)
par(mfrow=c(1,1))
})

Try the sm package in your browser

Any scripts or data that you put into this service are public.

sm documentation built on May 29, 2024, 2:28 a.m.