View source: R/plot.RVineMatrix.R
| contour.RVineMatrix | R Documentation | 
RVineMatrix objects.There are two plotting generics for RVineMatrix objects.
plot.RVineMatrix plots one or all trees of a given R-vine copula
model. Edges can be labeled with information about the corresponding
pair-copula. contour.RVineMatrix produces a matrix of contour plots
(using plot.BiCop()).
## S3 method for class 'RVineMatrix'
contour(x, tree = "ALL", xylim = NULL, cex.nums = 1, data = NULL, ...)
## S3 method for class 'RVineMatrix'
plot(
  x,
  tree = "ALL",
  type = 0,
  edge.labels = NULL,
  legend.pos = "bottomleft",
  interactive = FALSE,
  ...
)
| x | 
 | 
| tree | 
 | 
| xylim | numeric vector of length 2; sets  | 
| cex.nums | numeric; expansion factor for font of the numbers. | 
| data | a data matrix for creating kernel density contours of each pair. | 
| ... | Arguments passed to
 | 
| type | integer; specifies how to make use of variable names:  | 
| edge.labels | character; either a vector of edge labels or one of the
following:  | 
| legend.pos | the  | 
| interactive | logical; if TRUE, the user is asked to adjust the positioning of vertices with his mouse. | 
If you want the contour boxes to be perfect squares, the plot height should
be 1.25/length(tree)*(d - min(tree)) times the plot width.
Thomas Nagler, Nicole Barthel
RVineMatrix(),
network::plot.network(),
plot.BiCop(),
BiCopName(),
graphics::legend()
## build vine model
strucmat <- matrix(c(3,   1, 2, 0, 2, 1, 0, 0, 1), 3, 3)
fammat   <- matrix(c(0,   1, 6, 0, 0, 3, 0, 0, 0), 3, 3)
parmat   <- matrix(c(0, 0.3, 3, 0, 0, 1, 0, 0, 0), 3, 3)
par2mat  <- matrix(c(0,   0, 0, 0, 0, 0, 0, 0, 0), 3, 3)
RVM  <- RVineMatrix(strucmat, fammat, parmat, par2mat)
# plot trees
## Not run: plot(RVM)
# show contour plots
contour(RVM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.