Learn R Programming

ggfortify (version 0.4.17)

fortify.density: Convert stats::density to data.frame

Description

Convert stats::density to data.frame

Usage

# S3 method for density
fortify(model, data = NULL, ...)

Value

data.frame

Arguments

model

stats::density instance

data

original dataset, if needed

...

other arguments passed to methods

Examples

Run this code
fortify(stats::density(stats::rnorm(1:50)))

Run the code above in your browser using DataLab