Description Usage Arguments Value TODO
Parametric (stats::cmdscale()
) and non-parametric MDS (MASS::isoMDS()
or MASS::sammon()
)
Data may be scales and/or centered before distance calculation.
Distances are calculated between columns on a (possibly subset) of rows.
Similar to limma::plotMDS in terms of subseting rows, but it allows for all rows for distance calculation, while limma uses only top=XX genes
Uses MASS::isoMDS or MASS::sammon Similar to limma::plotMDS, except that is uses all parameters for distance calculation, while limma uses only top=XX genes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | MDScols(
data,
scale = FALSE,
center = FALSE,
FUN = "isoMDS",
p = 2,
selection = "pairwise",
top = 500,
k = 2,
maxit = 50,
trace = TRUE,
tol = 1e-04,
plot = FALSE,
labels = names(data),
col = NULL,
cex = 1,
main = NULL,
cex.main = 1,
xlab = "Coordinate 1",
ylab = "Coordinate 2",
...
)
MASS_MDScols(
data,
scale = FALSE,
center = FALSE,
method = "euclidean",
FUN = "isoMDS",
p = 2,
k = 2,
maxit = 50,
trace = TRUE,
tol = 0.001,
plot = FALSE,
labels = names(data),
col = NULL,
cex = 1,
main = NULL,
cex.main = 1,
xlab = "Coordinate 1",
ylab = "Coordinate 2",
...
)
plotIsoMDS(FUN = "isoMDS", plot = TRUE, selection = NULL, ...)
|
data |
Matrix-like object to MDS (and plot) distances between columns |
scale |
Logical scale data; standardize together with center |
center |
Logical center data; standardize together with scale |
FUN |
MDS function from MASS, default "isoMDS", alternative "sammon" |
p |
Power of the Minkowski distance, passed to distance calculation |
selection |
Character "pairwise" or "common" for selection of rows or NULL for using all rows; default "pairwise" |
top |
Integer number of rows for distance calculation, default 500 |
k |
Desired dimension for the solution, passed to |
maxit |
Max number of iterations, passed to |
trace |
Print trace, passed to |
tol |
Tolerance, passed to |
plot |
Logical, plot using R, default FALSE |
labels |
Character vector of alternative column names, default |
col |
Colors of labels |
cex |
Size of labels |
main |
String or TRUE to generate title generated automatically; default NULL |
cex.main |
Size of title |
xlab |
a label for the x axis, defaults to a description of |
ylab |
a label for the y axis, defaults to a description of |
... |
other graphical parameters (see |
method |
Distance metrics, passed to |
A k-column vector of the fitted configuration from FUN()
A k-column vector of the fitted configuration from FUN()
add parameter dim.plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.