stat-biplot-chull.Rd
As used in a ggplot2 vignette, this stat
layer restricts a dataset with x
and y
variables to its convex hull.
The biplot extension restricts each matrix factor to its own hull. The
conical
parameter controls whether the origin is included in the
calculation, though note that the result is not the (unbounded) conical hull.
stat_chull( mapping = NULL, data = NULL, geom = "polygon", position = "identity", conical = FALSE, show.legend = NA, inherit.aes = TRUE, ... ) stat_rows_chull( mapping = NULL, data = NULL, geom = "polygon", position = "identity", conical = FALSE, show.legend = NA, inherit.aes = TRUE, ... ) stat_cols_chull( mapping = NULL, data = NULL, geom = "polygon", position = "identity", conical = 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 |
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. |
conical | Logical; whether to include the origin when calculating the
hull. Defaults to |
show.legend | logical. Should this layer be included in the legends?
|
inherit.aes | If |
... | Additional arguments passed to |
An object of class StatChull
(inherits from Stat
, ggproto
, gg
) of length 3.
An object of class StatRowsChull
(inherits from StatChull
, Stat
, ggproto
, gg
) of length 2.
An object of class StatColsChull
(inherits from StatChull
, 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.