R/plotPrincipalCoordinates.R
plotPrincipalCoordinates.Rd
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.
numeric matrix, the output of getPrincipalCoordinates
numeric value, which column of pcoaMat
should serve as the x-axis
numeric value, which column of pcoaMat
should serve as the y-axis
optional, if provided points will be colored according to the groups defined in ftmsObj
optional plot title
x-axis label
y-axis label
TRUE/FALSE, should the x- and y-axis labels be appended with R^2 values?
plot marker size (default is 8)
a plotly
plot object
if (FALSE) {
pcoaMat <- getPrincipalCoordinates(exampleProcessedPeakData)
plotPrincipalCoordinates(pcoaMat, x=2, y=3, ftmsObj=exampleProcessedPeakData)
}