gg3logit | R Documentation |
gg3logit
initialises a ggplot
object through
ggtern
. If a field3logit
or a multifield3logit
object is passed to argument data
, the mandatory aesthetics of the ternary
plot are automatically set. See \insertCitesanti2022;textualplot3logit
for details and examples.
gg3logit(data = NULL, mapping = aes(), ...)
data |
a |
mapping |
list of aesthetic mappings to be used for plot. If a
|
... |
additional arguments passed through to |
The following aesthetics are required by at least one of the available stats.
None of them should be specified if a field3logit
or a multifield3logit
is passed to the argument data
of gg3logit()
, stat_field3logit()
or
stat_conf3logit()
:
x
, y
, z
are required by:
stat_field3logit()
as ternary coordinates of the starting points of the
arrows;
stat_conf3logit()
ternary coordinates of the points on the border of
confidence regions;
xend
, yend
, zend
: required by stat_field3logit()
as ternary
coordinates of the ending points of the arrows;
group
: identifier of groups of graphical objects (arrows and their confidence
regions);
type
: type of graphical object (arrows or confidence regions).
The following variables of a fortified field3logit
or a multifield3logit
object may be useful for defining other standard aesthetics (such as fill
,
colour
, ...):
label
identifies a field through a label, thus it is useful for
distinguishing the fields in a multifield3logit
object.
idarrow
identifies each group of graphical objects (arrows and their
confidence regions) within every field. Unlike variable group
,
idarrow
is not a global identifier of graphical objects.
Other gg functions:
autoplot.Hfield3logit()
,
stat_3logit()
,
stat_conf3logit()
,
stat_field3logit()
## Not run: data(cross_1year) mod0 <- nnet::multinom(employment_sit ~ gender + finalgrade, data = cross_1year) field0 <- field3logit(mod0, 'genderFemale') gg3logit(field0) + stat_field3logit() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.