Last updated 2 years ago
Used to do a univariate analysis
# view data data("iris") # Create the histogram hist(iris$Sepal.Width)
Output:
hist(iris$Sepal.Width, xlab = "Sepal Width", main = "Distribution of Sepal Width", col = "darkgoldenrod")