Plot_Biplot {LDABiplots} | R Documentation |
Plotting Biplot
Description
Plot_Biplot
initializes a ggplot2-based visualization of the caracteristics presented in the data analized by the Biplot selected.
Usage
Plot_Biplot(X, axis = c(1,2), hide = "none",
labels = "auto", ind.shape = 19,
ind.color = "red", ind.size = 2,
ind.label = FALSE, ind.label.size = 4,
var.color = "black", var.size = 0.5,
var.label = TRUE, var.label.size = 4, var.label.angle = FALSE)
Arguments
X |
List containing the output of one of the functions of the package. |
axis |
Vector with lenght 2 which contains the axis ploted in x and y axis. |
hide |
Vector specifying the elements to be hidden on the plot. Default value is “none”. Other allowed values are “ind” and “var”. |
labels |
It indicates the label for points. If it is "auto" the labels are the row names of the coordinates of individuals. If it isn't auto it would be a vector containing the labels. |
ind.shape |
Points shape. It can be a number to indicate the shape of all the points or a factor to indicate different shapes. |
ind.color |
Points colors. It can be a character indicating the color of all the points or a factor to use different colors. |
ind.size |
Size of points. |
ind.label |
Logical value, if it is TRUE it prints the name for each row of X. If it is FALSE (default) does not print the names. |
ind.label.size |
Numeric value indicating the size of the labels of points. |
var.color |
Character indicating the color of the arrows. |
var.size |
Size of arrow. |
var.label |
Logical value, if it is TRUE (default) it prints the name for each column of X. If it is FALSE does not print the names. |
var.label.size |
Numeric value indicating the size of the labels of variables. |
var.label.angle |
Logical value, if it it TRUE (default) it print the vector names with orentation of the angle of the vector. If it is FALSE the angle of all tags is 0. |
Value
Return a ggplot2
object.
See Also
Examples
hj.biplot <- HJBiplot(mtcars)
Plot_Biplot(hj.biplot, ind.label = TRUE)