inst/examples/R/data/graphics/histogram/example_histogram.R

library("MASS") # for Boston Housing data
# histogram + observations
hist(Boston$medv)
rug(Boston$medv)
#
library("lattice")
histogram(~medv, data=Boston)
#
library("ggplot2")
ggplot(Boston, aes(x=medv)) + geom_histogram(binwidth=2)
sigbertklinke/shinyExample documentation built on May 26, 2019, 4:32 a.m.