Learn R Programming

DataExplorer (version 0.5.0)

plot_histogram: Create histogram for continuous features

Description

This function creates histogram for each continuous feature.

Usage

plot_histogram(data, title = NULL, ...)

Arguments

data

input data to be plotted, in either data.frame or data.table format.

title

plot title

other arguments to be passed to geom_histogram.

See Also

geom_histogram plot_density

Examples

Run this code
# NOT RUN {
# plot iris data
plot_histogram(iris)

# plot random data with customized geom_histogram settings
set.seed(1)
data <- cbind(sapply(1:9, function(x) {rnorm(10000, sd = 30 * x)}))
plot_histogram(data, breaks = seq(-400, 400, length = 10))
# }

Run the code above in your browser using DataLab