stat_conf3logit: Add the confidence regions of a field to a 'gg3logit' plot

View source: R/ggtern.R

stat_conf3logitR Documentation

Add the confidence regions of a field to a gg3logit plot


stat_conf3logit() adds a field to a gg3logit plot.


  mapping = aes(),
  data = NULL,
  geom = "polygon",
  position = "identity",
  show.legend = NA,
  inherit.aes = TRUE,



list of aesthetic mappings to be used for plot. Mandatory aesthetics should not be specified if field3loglit or multifield3logit object is passed to data. See secion Aesthetic mappings of gg3logit() for details.


a field3logit object, a multifield3logit object, or a data.frame structured like a fortified field3logit or a multifield3logit object.


The geometric object to use display the data


Position adjustment, either as a string, or the result of a call to a position adjustment function.


logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display.


If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn't inherit behaviour from the default plot specification, e.g. borders().


additional arguments passed through to ggtern.

See Also

Other gg functions: autoplot.Hfield3logit(), gg3logit(), stat_3logit(), stat_field3logit()


## Not run: 

mod0 <- nnet::multinom(employment_sit ~ gender + finalgrade, data = cross_1year)
field0 <- field3logit(mod0, 'genderFemale', conf = 0.95)

gg3logit(field0) + stat_conf3logit()
gg3logit(field0) + stat_field3logit() + stat_conf3logit()

## End(Not run)

plot3logit documentation built on July 19, 2022, 9:07 a.m.