The w.starplot.Coxmos
function is tailored to visualize the W* values, which are indicative of
the variable contributions in a Coxmos model. Initially, the function checks the class of the
provided model to ensure its compatibility with the Coxmos framework.
The W* values are extracted from the model and subsequently processed based on user-defined
parameters. The zero.rm
option allows users to exclude variables with zero W* values, ensuring
a more concise visualization. If the top
parameter is specified, the function focuses on
displaying only the top-ranked variables based on their absolute W* values.
The visualization is constructed using the 'ggplot2' framework. The color scale can be automatically
adjusted to the maximum absolute W* value when the auto.limits
parameter is set to TRUE. The
function also checks for the availability of the RColorConesa
package. If present, it leverages
its color palettes for a more refined visualization; in its absence, default color schemes are applied.