powered by
This function is called by distogram, and probably isn't very useful by itself.
distogram
trianglegram(x, labels = rownames(x), lower = TRUE, diag = FALSE, right = FALSE, add = FALSE, xpos = 0, ypos = 0, xlim, ylim, ...)
A square matrix containing color values.
Labels.
If TRUE, use lower.tri, else use upper.tri.
lower.tri
upper.tri
Include the diagonal elements of x?
x
Should triangle point to the right or left?
Add to an existing plot?
Location of bottom point of the triangle.
Plotting limits.
Further arguments passed to plot.
plot
none.
The input must be a (square) matrix; however, only part of the matrix (the upper or lower triangle) is displayed.
distogram, corrogram
corrogram
# NOT RUN { m <- matrix(jet(40), nrow = 20, ncol = 20) trianglegram(m) ## just for fun trianglegram(m, labels = NA, right = TRUE, add = TRUE, xpos = 1) # }
Run the code above in your browser using DataLab