Switch to unified view

a b/OmicsFold/man/plot.predicted.projection.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/sample_analysis.R
3
\name{plot.predicted.projection}
4
\alias{plot.predicted.projection}
5
\title{Plot projections for a prediction result}
6
\usage{
7
\method{plot}{predicted.projection}(prediction, classes.new)
8
}
9
\arguments{
10
\item{prediction}{mixOmics sPLS-DA prediction object, generated by the
11
`predict` method.}
12
13
\item{classes.new}{Factor indicating the classes of the new data.}
14
}
15
\value{
16
ggplot plot of the predicted data in the sPLS-DA model space.
17
}
18
\description{
19
Function to plot a single-omics sPLS-DA prediction projected into the model
20
space. While confusion matrices of predicted data can easily be obtained,
21
there is no built-in function to plot the projection into the model space and
22
hence give a visualisation of the quality of the prediction. The plot will
23
show the centroids of the classes as large points, surrounded by the sample
24
projection as small points, coloured according to class. A good prediction
25
will cluster each class around the appropriate centroid.
26
}
27
\examples{
28
\dontrun{
29
prediction.projection <- plot.predicted.projection(prediction.replicate.data, replicate.data.classes)
30
print(prediction.projection)
31
}
32
}