Learn R Programming

plot3logit (version 2.2.0)

plot3logit-deprecated: Computation and representation of the vector field

Description

deprecated

This function is deprecated and may be soon removed from the package.

plot3logit() method draws the ternary plot using standard graphics methods provided by package Ternary. Use the method plot() of field3logit objects instead.

Usage

plot3logit(
  model,
  delta,
  label = "",
  p0 = NULL,
  alpha = NULL,
  ncurves = 8,
  narrows = Inf,
  edge = 0.01,
  ...
)

Arguments

model

either a fitted trinomial model or a matrix of regressor coefficients. See section Compatibility and examples of plot3logit-package.

delta

the change in the values of covariates to be represented. This could be either a numeric vector, the name of a covariate (passed either as a character or an expression), or a mathematical expression involving one or more than one covariates (passed either as a character or an expression). If a list is passed to delta, multiple fields are computed according to parameters passed as components of a 2-level list. See details and examples.

label

label to be used for identifying the field when multiple fields are plotted. See multifield3logit().

p0

list of starting points (ternary coordinates) of the curves of the field. If not specified, field3logit automatically compute nstreams candidate points so that arrows are evenly distributed over the ternary plot area. See Examples.

alpha

numeric vector of length two where constants \(\alpha^{(1)}\) and \(\alpha^{(2)}\) are stored (only for ordinal models), as defined in Equation (7) of santi2019;textualplot3logit.

ncurves

number of curves of the field to be computed. In case of ordinal models, this parameter is ineffective, as only one curve can be drawn. The parameter is ineffective also in case that argument p0 is set.

narrows

maximum number of arrows to be drawn per curve.

edge

minimum distance between each arrow (or point) and the edge of the ternary plot.

...

other arguments passed to or from other methods.

Value

S3 object of class field3logit structured as a named list.

See Also

field3logit().