geom-biplot-vector.Rd
geom_*_vector()
renders arrows from the origin to the position
of each case or variable.
geom_vector( mapping = NULL, data = NULL, stat = "identity", position = "identity", arrow = default_arrow, ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE ) geom_rows_vector( mapping = NULL, data = NULL, stat = "identity", position = "identity", arrow = default_arrow, ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE ) geom_cols_vector( mapping = NULL, data = NULL, stat = "identity", position = "identity", arrow = default_arrow, ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE ) geom_dims_vector( mapping = NULL, data = NULL, stat = "identity", position = "identity", .matrix = "cols", arrow = default_arrow, ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE )
mapping | Set of aesthetic mappings created by |
---|---|
data | The data to be displayed in this layer. There are three options: If A A |
stat | The statistical transformation to use on the data for this layer, as a string. |
position | Position adjustment, either as a string, or the result of a call to a position adjustment function. |
arrow | Specification for arrows, as created by |
... | Additional arguments passed to |
na.rm | Passed to |
show.legend | logical. Should this layer be included in the legends?
|
inherit.aes | If |
.matrix | A character string matching one of several indicators for one
or both matrices in a matrix decomposition used for ordination. The
standard values are |
An object of class GeomVector
(inherits from GeomSegment
, Geom
, ggproto
, gg
) of length 4.
ggbiplot()
uses ggplot2::fortify()
internally to produce a single data
frame with a .matrix
column distinguishing the subjects ("rows"
) and
variables ("cols"
). The stat layers stat_rows()
and stat_cols()
simply
filter the data frame to one of these two.
The geom layers geom_rows_*()
and geom_cols_*()
call the corresponding
stat in order to render plot elements for the corresponding factor matrix.
geom_dims_*()
selects a default matrix based on common practice, e.g.
points for rows and arrows for columns.
geom_*_vector()
understands the following aesthetics (required aesthetics
are in bold):
x
y
alpha
colour
linetype
size
group