Plotting procedures for multiblock
objects.
# S3 method for multiblock
scoreplot(
object,
comps = 1:2,
block = 0,
labels,
identify = FALSE,
type = "p",
xlab,
ylab,
main,
...
)# S3 method for multiblock
loadingplot(
object,
comps = 1:2,
block = 0,
scatter = TRUE,
labels,
identify = FALSE,
type,
lty,
lwd = NULL,
pch,
cex = NULL,
col,
legendpos,
xlab,
ylab,
main,
pretty.xlabels = TRUE,
xlim,
...
)
loadingweightplot(object, main = "Loading weights", ...)
# S3 method for multiblock
biplot(
x,
block = 0,
comps = 1:2,
which = c("x", "y", "scores", "loadings"),
var.axes = FALSE,
xlabs,
ylabs,
main,
...
)
multiblock
object.
integer
vector giving components, within block, to plot.
integer/character
for block selection.
character
indicating if "names" or "numbers" should be plot symbols (optional).
logical
for activating identify
to interactively identify points.
character
for selecting type of plot to make. Defaults to "p" (points) for scatter plots and "l" (lines) for line plots.
character
text for x labels.
character
text for y labels.
character
text for main header.
Not implemented.
logical
indicating if a scatterplot of loadings should be made (default = TRUE).
Vector of line type specifications (see par
for details).
numeric
vector of line width specifications.
Vector of point specifications (see points
for details).
numeric
vector of plot size expansions (see par
for details).
integer
vector of symbol/line colours (see par
for details).
character
indicating legend position (if scatter
is FALSE), e.g. legendpos = "topright"
.
logical
indicating if xlabels should be more nicely plotted (default = TRUE).
numeric
vector of length two, with the x limits of the plot (optional).
multiblock
object.
character
for selecting type of biplot ("x" = default, "y", "scores", "loadings").
logical
indicating if second axes of a biplot should have arrows.
character
vector for labelling first set of biplot points (optional).
character
vector for labelling second set of biplot points (optional).
These plotting routines only generate plots and return no values.
Plot functions for scores
, loadings
and loading.weights
based
on the functions found in the pls
package.
Overviews of available methods, multiblock
, and methods organised by main structure: basic
, unsupervised
, asca
, supervised
and complex
.
Common functions for computation and extraction of results are found in multiblock_results
.
# NOT RUN {
data(wine)
sc <- sca(wine[c('Smell at rest', 'View', 'Smell after shaking')], ncomp = 4)
plot(loadings(sc, block = 1), labels = "names", scatter = TRUE)
# }
Run the code above in your browser using DataLab