la fonction hist permet de tracer rapidement et facilement un histogramme. Cette fonction prend un vecteur en parametre.


data(iris)
hist(iris$Sepal.Length)
hist(iris$Sepal.Length,nclass=3)