biplot
using ggplot2
.Draw biplot
using ggplot2
.
ggbiplot(
plot.data,
loadings.data = NULL,
colour = NULL,
size = NULL,
linetype = NULL,
alpha = NULL,
fill = NULL,
shape = NULL,
label = FALSE,
label.label = "rownames",
label.colour = colour,
label.alpha = NULL,
label.size = NULL,
label.angle = NULL,
label.family = NULL,
label.fontface = NULL,
label.lineheight = NULL,
label.hjust = NULL,
label.vjust = NULL,
label.repel = FALSE,
label.position = "identity",
loadings = FALSE,
loadings.arrow = grid::arrow(length = grid::unit(8, "points")),
loadings.colour = "#FF0000",
loadings.linewidth = 0.5,
loadings.label = FALSE,
loadings.label.label = "rownames",
loadings.label.colour = "#FF0000",
loadings.label.alpha = NULL,
loadings.label.size = NULL,
loadings.label.angle = NULL,
loadings.label.family = NULL,
loadings.label.fontface = NULL,
loadings.label.lineheight = NULL,
loadings.label.hjust = NULL,
loadings.label.vjust = NULL,
loadings.label.repel = FALSE,
label.show.legend = NA,
frame = FALSE,
frame.type = NULL,
frame.colour = colour,
frame.level = 0.95,
frame.alpha = 0.2,
xlim = c(NA, NA),
ylim = c(NA, NA),
log = "",
main = NULL,
xlab = NULL,
ylab = NULL,
asp = NULL,
...
)
ggplot
data.frame
data.frame
colour
size
line type
alpha
fill
shape
Logical value whether to display data labels
Column name used for label text
Colour for text labels
Alpha for text labels
Size for text labels
Angle for text labels
Font family for text labels
Fontface for text labels
Lineheight for text labels
Horizontal adjustment for text labels
Vertical adjustment for text labels
Logical flag indicating whether to use ggrepel
, enabling this may take some time for plotting
Character or a position function
Logical value whether to display loadings arrows
An arrow definition
Point colour for data
Segment linewidth for loadings
Logical value whether to display loadings labels
Column name used for loadings text labels
Colour for loadings text labels
Alpha for loadings text labels
Size for loadings text labels
Angle for loadings text labels
Font family for loadings text labels
Fontface for loadings text labels
Lineheight for loadings text labels
Horizontal adjustment for loadings text labels
Vertical adjustment for loadings text labels
Logical flag indicating whether to use ggrepel
automatically
Logical value indicating whether to show the legend of text labels
Logical value whether to draw outliner convex / ellipse
Character specifying frame type.
'convex' or types supporeted by ggplot2::stat_ellipse
can be used.
Colour for frame
Passed for ggplot2::stat_ellipse
's level. Ignored in 'convex'.
Alpha for frame
limits for x axis
limits for y axis
which variables to log transform ("x", "y", or "xy")
character vector or expression for plot title
character vector or expression for x axis label
character vector or expression for y axis label
the y/x aspect ratio
other arguments passed to methods