The relsa_plot
function visualizes the RELSA score alone or in combination with one of the variables.
relsa_plot( set = NULL, RELSA, levels = NULL, animal = 1, plotvar = NULL, plotRELSA = TRUE, myylim = c(70, 110), myYlim = c(0, 2), mypch = 1, mycol = "red", myXlab = "time point" )
set | dataset sample data frame |
---|---|
RELSA | RELSA object |
levels | k+1 levels from kmeans calculations (relsa_levels function) |
animal | which unique animal in the set? |
plotvar | which variable shall be plotted (does not scale with RELSA score) |
plotRELSA | plot the RELSA score "yes/no"? |
myylim | custom y-axis limits (left axis) |
myYlim | custom y-axis limits (right axis) |
mypch | custom dot marker |
mycol | custom plot color |
myXlab | custom x-axis label |
relsa
data.frame with RELSA scores for each variable, the sum and mean score