plot_var function

Representation of the variables and their group membership

Representation of the variables and their group membership

Loading plot of the variables from a Principal Components Analysis. The group membership of the variables is superimposed.

plot_var( resclv, K = NULL, axeh = 1, axev = 2, label = FALSE, cex.lab = 1, v_colors = NULL, v_symbol = FALSE, beside = FALSE )

Arguments

  • resclv: results of CLV(), CLV_kmeans() or LCLV()
  • K: the number of groups in the partition (already defined if CLV_kmeans is used)
  • axeh: component number for the horizontal axis
  • axev: component number for the vertical axis
  • label: = TRUE :the column names in X are used as labels / = FALSE: no labels (by default)
  • cex.lab: : magnification to be used for labels (1 by default)
  • v_colors: default NULL. If missing colors are given, by default
  • v_symbol: =TRUE : symbols are given isntead of colors for the identification of the groups/ =FALSE: no symbol (by default).
  • beside: =TRUE : a plot per cluster of variables, side-by-side/ =FALSE :an unique plot with all the variables with the identification of their group membership (by default).

Examples

data(apples_sh) resclvX <- CLV(X = apples_sh$senso, method = 1, sX = TRUE) plot_var(resclvX, K = 4, axeh = 1, axev = 2)
  • Maintainer: Evelyne Vigneau
  • License: GPL-3
  • Last published: 2022-05-28

Useful links