MoTBFs (version 1.4.1)

plot.jointmotbf: Bidimensional plots for 'jointmotbf' objects

Description

PLot the perpective and the contour plots for joint MoTBF functions.

Usage

# S3 method for jointmotbf
plot(
  x,
  type = "contour",
  ranges = NULL,
  orientation = c(5, -30),
  data = NULL,
  filled = TRUE,
  ticktype = "simple",
  ...
)

Arguments

x

An object of class 'jointmotbf'.

type

A "character" string, either contour or perspective. It is set to "contour" by default.

ranges

A "numeric" matrix containing the domain of the variables, by columns, which is used to specify the plotting range.

orientation

A "numeric" vector indicating the perpective of the plot in degrees. By default, it is set to (5,-30).

data

An object of class "data.frame" containing two columns only. This argument is used to draw the points over the main plot. By default, it is set to NULL.

filled

A logical argument; it is only used if type = "contour". is active. By default, it is TRUE, so filled contours are plotted.

ticktype

A "character" string, either simple or detailed. By default, it is set to "simple", which draws just an arrow parallel to the axis to indicate direction of increase. In contrast, "detailed" draws normal ticks. This argument is only used in the "perspective" plot.

Further arguments to be passed to plot.

Value

A plot of the joint MoTBF.

See Also

jointMoTBF

Examples

Run this code
# NOT RUN {
## 1 .EXAMPLE
## Dataset
X <- data.frame(rnorm(500), rnorm(500))

## Joint function
dim <- c(3,3) 
param1 <- parametersJointMoTBF(X, dimensions = dim)
P <- jointMoTBF(param1)
P

## Plots
plot(P)
plot(P, type = "perspective", orientation = c(90,0))

#############################################################################
## MORE EXAMPLES ############################################################
#############################################################################
# }
# NOT RUN {
## Dataset
X <- data.frame(rnorm(200,2), rexp(200, 1))

## Joint function
dim <- c(4,5)
param2 <- parametersJointMoTBF(X, dimensions = dim)
P <- jointMoTBF(param2)
P

## Plots
plot(P)
plot(P, filled = FALSE, data = X)
plot(P, type = "perspective", orientation = c(10,180))
# }

Run the code above in your browser using DataLab