plot.trivRegion {refreg}R Documentation

Default trivRegion plotting

Description

This function allow to depict in an interactive rgl plot the estimated trivariate reference/probabilistic region. If cond=FALSE it showes trivariate standarized residuals, while with cond=TRUE it represents the region shape for any covariate(s) value.

Usage

## S3 method for class 'trivRegion'
plot(
  x,
  cond = FALSE,
  planes = FALSE,
  newdata = NULL,
  add = FALSE,
  reg.col = NULL,
  incol = "grey",
  legend = FALSE,
  ...
)

Arguments

x

A trivRegion object.

cond

A logical argument, if TRUE a conditional reference region is depicted.

planes

Logical; if TRUE, planes are added indicating (x=0,y=0,z=0).

newdata

If cond==TRUE, a data frame containing covariate values for which the reference/probabilistic region will be depicted.

add

A logical argument, if TRUE the conditional reference region is depicted over a pre existing plot.

reg.col

Region contour colour.

incol

Colours for the points included inside the reference region.

legend

A logical argument, if TRUE a legend is given along with the reference region.

...

Further rgl plot parameters.

Value

This function return an interactive rgl plot of a bivRegion object.


[Package refreg version 0.1.1 Index]