fortify.prcomp: Convert 'stats::prcomp', 'stats::princomp' to 'data.frame'

Description Usage Arguments Value Examples

View source: R/fortify_stats.R

Description

Convert stats::prcomp, stats::princomp to data.frame

Usage

1
2
## S3 method for class 'prcomp'
fortify(model, data = NULL, ...)

Arguments

model

stats::prcomp or stats::princomp instance

data

original dataset, if needed

...

other arguments passed to methods

Value

data.frame

Examples

1
2
3
4
5
fortify(stats::prcomp(iris[-5]))
fortify(stats::prcomp(iris[-5]), data = iris)

fortify(stats::princomp(iris[-5]))
fortify(stats::princomp(iris[-5]), data = iris)

sinhrks/ggfortify documentation built on May 26, 2018, 6:24 p.m.