| stat_3logit | R Documentation |
gg3logit plotstat_3logit() adds a field and confidence regions to a gg3logit
plot. stat_3logit() is a wrapper for stats stat_field3logit() and
stat_conf3logit() which are jointly applied.
stat_3logit(
mapping_field = aes(),
mapping_conf = aes(),
data = NULL,
params_field = list(),
params_conf = list(),
show.legend = NA,
inherit.aes = TRUE,
conf = TRUE
)
mapping_field, mapping_conf |
aesthetic mappings passed to argument
|
data |
a |
params_field, params_conf |
graphical parameters passed to argument
|
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
conf |
if |
If conf is set to FALSE a layer of ggplot package is returned
(object of class LayerInstance), otherwise, if conf is set to TRUE,
stat_3logit returns a list of two ggplot2 layers (class LayerInstance).
Other gg functions:
autoplot.Hfield3logit(),
gg3logit(),
stat_conf3logit(),
stat_field3logit()
data(cross_1year)
mod0 <- nnet::multinom(employment_sit ~ gender + finalgrade, data = cross_1year)
field0 <- field3logit(mod0, 'genderFemale', conf = 0.95)
gg3logit(field0) + stat_3logit()
gg3logit(field0) + stat_3logit(conf = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.