The primary objective of the loadingplot.Coxmos
function is to facilitate the interpretation of
Coxmos models by visualizing the loading values of each component. The function first verifies the
class of the provided model to ensure it is a valid Coxmos model.
The loading values are extracted from the model and processed based on the user's specifications.
If the zero.rm
parameter is set to TRUE, variables with zero loadings are excluded from the
visualization. Additionally, if the top
parameter is specified, only the top variables, ranked
by their absolute loading values, are displayed.
The function employs the 'ggplot2' framework for visualization. The color scale of the plots can be
automatically adjusted based on the maximum absolute loading value when auto.limits
is set to
TRUE. If the RColorConesa
package is available, it utilizes its color palettes for enhanced
visualization; otherwise, default colors are applied.