plot_Coxmos.PLS.model {Coxmos}R Documentation

plot_Coxmos.PLS.model

Description

Visualizes the Coxmos model using partial least squares (PLS) approach. This function offers various plotting modes, including scores, loadings, and biplot visualizations, to provide insights into the model's structure and relationships.

Usage

plot_Coxmos.PLS.model(
  model,
  comp = c(1, 2),
  mode = "scores",
  factor = NULL,
  legend_title = NULL,
  top = NULL,
  only_top = FALSE,
  radius = NULL,
  names = TRUE,
  colorReverse = FALSE,
  text.size = 2,
  overlaps = 10
)

Arguments

model

Coxmos model.

comp

Numeric vector. Vector of length two. Select which components to plot (default: c(1,2)).

mode

Character. Choose one of the following plots: "scores", "loadings" o "biplot" (default: "scores").

factor

Factor. Factor variable to color the observations. If factor = NULL, event will be used (default: NULL).

legend_title

Character. Legend title (default: NULL).

top

Numeric. Show "top" first variables. If top = NULL, all variables are shown (default: NULL).

only_top

Logical. If "only_top" = TRUE, then only top/radius loading variables will be shown in loading or biplot graph (default: FALSE).

radius

Numeric. Radius size (loading/scale value) to plot variable names that are greater than the radius value (default: NULL).

names

Logical. Show loading names for top variables or for those that are outside the radius size (default: TRUE).

colorReverse

Logical. Reverse palette colors (default: FALSE).

text.size

Numeric. Text size (default: 2).

overlaps

Numeric. Number of overlaps to show when plotting loading names (default: 10).

Details

The plot_Coxmos.PLS.model function is designed to generate comprehensive visualizations of the Coxmos model, specifically tailored for PLS. It leverages the inherent structure of the model to produce plots that can aid in the interpretation of the model's components and their relationships.

Depending on the chosen mode, the function can display:

The function also offers various customization options, such as adjusting the text size, reversing the color palette, and specifying the number of overlaps for loading names. It ensures that the visualizations are informative and tailored to the user's preferences and the specific characteristics of the data.

It's important to note that the function performs checks to ensure the input model is of the correct class and provides informative messages for any inconsistencies detected.


[Package Coxmos version 1.0.2 Index]