powered by
Create histograms for all quantitative variables in a data frame.
histograms(data, fill = "deepskyblue2", color = "white", bins = 30)
data frame
fill color for histogram bars
border color for histogram bars
number of bins (bars) for the histograms
a ggplot graph
The histograms function will only plot quantitative variables from a data frame. Categorical variables are ignored.
histograms
# NOT RUN { histograms(cars74) histograms(cars74, bins=15, fill="darkred") # }
Run the code above in your browser using DataLab