Description Usage Arguments Details Value See Also Examples
This function is called by distogram
, and probably isn't very useful by itself.
1 2 3 |
x |
A square matrix containing color values. |
labels |
Labels. |
lower |
If TRUE, use |
diag |
Include the diagonal elements of |
right |
Should triangle point to the right or left? |
add |
Add to an existing plot? |
xpos, ypos |
Location of bottom point of the triangle. |
xlim, ylim |
Plotting limits. |
... |
Further arguments passed to |
The input must be a (square) matrix; however, only part of the matrix (the upper or lower triangle) is displayed.
none.
1 2 3 4 5 6 |
m <- matrix(jet(40), nrow = 20, ncol = 20)
trianglegram(m)
## just for fun
trianglegram(m, labels = NA, right = TRUE, add = TRUE, xpos = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.