R: Convert 'stats::density' to 'data.frame'

fortify.density {ggfortify} | R Documentation

## Convert `stats::density` to `data.frame`

### Description

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

### Usage

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

### Arguments

`model` | `stats::density` instance
`data` | original dataset, if needed
`...` | other arguments passed to methods

### Value

data.frame

### Examples

    fortify(stats::density(stats::rnorm(1:50)))

[Package ggfortify version 0.4.3 Index]