fortify.matrix {ggfortify} | R Documentation |
Convert base::matrix
to data.frame
Description
Different from as.data.frame
Usage
## S3 method for class 'matrix'
fortify(model, data = NULL, compat = FALSE, ...)
Arguments
model |
|
data |
original dataset, if needed |
compat |
Logical frag to specify the behaviour when converting matrix which has no column name.
If |
... |
other arguments passed to methods |
Value
data.frame
Examples
fortify(matrix(1:6, nrow=2, ncol=3))
[Package ggfortify version 0.4.17 Index]