powered by
base::matrix
data.frame
Different from as.data.frame
as.data.frame
# S3 method for matrix fortify(model, data = NULL, compat = FALSE, ...)
base::matrix instance
original dataset, if needed
Logical frag to specify the behaviour when converting matrix which has no column name. If FALSE, result has character columns like c('1', '2', ...). If TRUE, result has character columns like c('V1', 'V2', ...).
FALSE
TRUE
other arguments passed to methods
fortify(matrix(1:6, nrow=2, ncol=3))
Run the code above in your browser using DataLab