# NOT RUN {
## This example cannot be run by examples() but should be work in an interactive R session
slider.hist(log(islands))
# }
# NOT RUN {
## This example cannot be run by examples() but should be work in an interactive R session
slider.density(rivers,xlab="rivers",col="red")
# }
# NOT RUN {
## This example cannot be run by examples() but should be work in an interactive R session
slider.density(log(rivers),xlab="rivers",col="red",
panel=function(x){
xx<-seq(min(x),max(x),length=100)
yy<-dnorm(xx,mean(x),sd(x))
lines(xx,yy)
rug(x)
print(summary(yy))
}
)
# }
Run the code above in your browser using DataLab