Convert a DiffusionMap or DPT object to other classes
# S4 method for DiffusionMap as.data.frame(x, row.names = NULL, optional = FALSE, ...) fortify.DiffusionMap(model, data, ...) # S4 method for DPT as.data.frame(x, row.names = NULL, optional = FALSE, ...) fortify.DPT(model, data, ...) # S4 method for DPT as.matrix(x, ...)
| x, model | A |
|---|---|
| row.names | NULL or a character vector giving the row names for the data frame. Missing values are not allowed. |
| optional | logical. If TRUE, setting row names and converting column names (to syntactic names: see make.names) is optional. |
| ... | Passed to |
| data | ignored |
An object of the desired class
fortify is a ggplot2 generic allowing a diffusion map to be used as data parameter in ggplot or qplot.