Learn R Programming

DataExplorer (version 0.5.0)

plot_density: Visualize density estimates for continuous features

Description

This function visualizes density estimates for each continuous feature.

Usage

plot_density(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_density.

See Also

geom_density plot_histogram

Examples

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

# plot using random data
set.seed(1)
data <- cbind(sapply(1:9, function(x) {
          runif(500, min = sample(100, 1), max = sample(1000, 1))
        }))
plot_density(data)
# }

Run the code above in your browser using DataLab