View source: R/plotPrincipalCoordinates.R
plotPrincipalCoordinates | R Documentation |
Constructs a scatter plot of any combination of principal coordinates calculated by the getPrincipalCoordinates
function. If an associated ftmsData
object is provided with groups defined, the resulting plot will be colored by group membership.
plotPrincipalCoordinates(
pcoaMat,
x = 1,
y = 2,
ftmsObj = NA,
title = NA,
xlabel = sprintf("Principal Coordinate %d", x),
ylabel = sprintf("Principal Coordinate %d", y),
includeR2OnAxes = TRUE,
size = 8
)
pcoaMat |
numeric matrix, the output of |
x |
numeric value, which column of |
y |
numeric value, which column of |
ftmsObj |
optional, if provided points will be colored according to the groups defined in |
title |
optional plot title |
xlabel |
x-axis label |
ylabel |
y-axis label |
includeR2OnAxes |
TRUE/FALSE, should the x- and y-axis labels be appended with R^2 values? |
size |
plot marker size (default is 8) |
a plotly
plot object
## Not run:
pcoaMat <- getPrincipalCoordinates(exampleProcessedPeakData)
plotPrincipalCoordinates(pcoaMat, x=2, y=3, ftmsObj=exampleProcessedPeakData)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.