| plot.motbf | R Documentation |
'motbf' objectsDraws an 'motbf' function.
## S3 method for class 'motbf'
plot(x, ...)
## S3 method for class 'univmotbf'
plot(x, xlim = NULL, ylim = NULL, type = "l", add = FALSE, ...)
## S3 method for class 'piecewisemop'
plot(x, xlim = NULL, ylim = NULL, ...)
## S3 method for class 'motbf.fit.node'
plot(x, panels = TRUE, ...)
## S3 method for class 'jointmotbf'
plot(
x,
type = "contour",
ranges = NULL,
orientation = c(5, -30),
data = NULL,
filled = TRUE,
ticktype = "simple",
main = NULL,
...
)
x |
An object of class |
... |
Further arguments to be passed as for plot. |
xlim, ylim |
Numeric vectors of length 2 specifying x and y axis limits. By default |
type |
Character string specifying the plot type, as for plot. For |
add |
Logical; if |
panels |
Logical; if |
ranges |
A |
orientation |
A |
data |
An object of class |
filled |
A logical argument; it is only used if |
ticktype |
A |
main |
Title string for the plot. Used in |
A plot of the specificated function.
## 1. univmotbf - Example for univariate distributions
## Data
X <- rexp(2000)
f1 <- univMoTBF(X, POTENTIAL_TYPE = "MOP")
f2 <- univMoTBF(X, POTENTIAL_TYPE = "MTE", maxParam = 10)
## Plots
plot(NULL, xlim = range(X), ylim = c(0,0.8), xlab="X", ylab="density")
plot(f1, xlim = range(X), col = 1, add = TRUE)
plot(f2, xlim = range(X), col = 2, add = TRUE)
## 2. jointmotbf - Example for join distributions
## Data
X <- data.frame(rnorm(500), rnorm(500))
## Joint function
dim <- c(3,3)
P <- jointmotbf.fit(X, dimensions = dim)
## Plots
plot(P)
plot(P, type = "perspective", orientation = c(90,0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.