| plotBLB | R Documentation |
Produces a ggplot2-based logistic biplot from a BiplotML
object fitted with LogBip. Supports coloring and
shaping of row markers by a categorical variable, filled arrowheads,
dashed reference lines that span the full plot area, and flexible axis-limit control via
xylim, xlim, and ylim.
plotBLB(
x,
dim = c(1, 2),
col.ind = NULL,
col.var = "#0E185F",
label.ind = FALSE,
draw = c("biplot", "ind", "var"),
titles = NULL,
ellipses = FALSE,
endsegm = 0.75,
repel = FALSE,
xylim = NULL,
xlim = NULL,
ylim = NULL,
escala = NULL
)
x |
An object of class |
dim |
Integer vector of length 2 specifying which dimensions to plot.
Default is |
col.ind |
Optional vector of the same length as the number of rows in
the original data, used to color and shape the row markers by a
categorical variable (e.g., |
col.var |
Color for the variable arrows. Default is |
label.ind |
Logical; if |
draw |
Which graph to draw. One of |
titles |
Main title for the plot. If |
ellipses |
Logical; if |
endsegm |
End point of the variable arrow on the probability scale.
The arrow starts at |
repel |
Logical; if |
xylim |
Numeric vector of length 2 specifying a symmetric range
applied to both axes, e.g., |
xlim |
Numeric vector of length 2 specifying the range of the
x-axis independently, e.g., |
ylim |
Numeric vector of length 2 specifying the range of the
y-axis independently, e.g., |
escala |
Positive numeric scalar. Multiplicative factor applied to
the row marker coordinates ( |
Variable vectors are drawn as arrows from the point where the predicted
probability equals 0.5 to the point where it equals endsegm.
Short arrows indicate a rapid increase in the probability of the
corresponding characteristic. The orthogonal projection of a row marker
onto a variable's arrow approximates the probability that the
characteristic is present for that individual.
The three arguments that control axis limits are evaluated in the following order of priority:
xlim and ylim (independent limits for each axis).
xylim (symmetric limits applied to both axes).
Automatic limits derived from all plotted elements.
The escala argument multiplies the row marker coordinates before
plotting so that they are visually comparable to the variable arrows,
which are expressed in the original parameter units. It only affects the
display, not the stored coordinates.
A ggplot2 object that can be further customised with
standard ggplot2 functions (e.g., theme(), labs()).
Giovany Babativa <jgbabativam@unal.edu.co>
Meulman, J. J., & Heiser, W. J. (1983). The Display of Bootstrap Solutions in Multidimensional Scaling (Technical memorandum). Bell Laboratories.
Vicente-Villardon, J. L., & Galindo, M. P. (2006). Logistic biplots. In M. Greenacre & J. Blasius (Eds.), Multiple Correspondence Analysis and Related Methods (pp. 503–521). Chapman & Hall.
LogBip
data("Methylation")
set.seed(123456)
res <- LogBip(x = Methylation, method = "MM", maxit = 1000, plot = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.