biplot-matrix.Rd
These stats merely tell ggplot2::ggplot()
which factor of an
ordination to pull data from for a plot layer. They are invoked internally
by the various geom_*_*()
layers.
stat_rows( mapping = NULL, data = data, geom = "point", position = "identity", ..., show.legend = NA, inherit.aes = TRUE ) stat_cols( mapping = NULL, data = data, geom = "axis", position = "identity", ..., 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 |
geom | The geometric object to use display the data |
position | Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... | Additional arguments passed to |
show.legend | logical. Should this layer be included in the legends?
|
inherit.aes | If |
An object of class StatRows
(inherits from StatIdentity
, Stat
, ggproto
, gg
) of length 2.
An object of class StatCols
(inherits from StatIdentity
, Stat
, ggproto
, gg
) of length 2.
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.