| autoplot.Hfield3logit | R Documentation |
gg3logit plot with field and confidence regionsautoplot() creates a gg3logit plot and adds a field and its confidence
regions. autoplot() is a wrapper for gg3logit() and stat_3logit().
## S3 method for class 'Hfield3logit'
autoplot(
object,
...,
mapping_field = aes(),
mapping_conf = aes(),
data = NULL,
params_field = list(),
params_conf = list(),
show.legend = NA,
conf = TRUE
)
object |
an object of class |
... |
other arguments passed to specific methods |
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?
|
conf |
if |
Object of class ggplot.
Other gg functions:
gg3logit(),
stat_3logit(),
stat_conf3logit(),
stat_field3logit()
data(cross_1year)
mod0 <- nnet::multinom(employment_sit ~ gender + finalgrade, data = cross_1year)
field0 <- field3logit(mod0, 'genderFemale', conf = 0.95)
autoplot(field0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.