View source: R/plot.char.diff.R
plot.char.diff | R Documentation |
Plots a character difference matrix from a discrete character matrix or its character differences density profile.
## S3 method for class 'char.diff'
plot(
x,
...,
type = "matrix",
legend = TRUE,
legend.title = "Difference",
legend.pos = "topleft",
legend.round = 0,
axis = TRUE,
xlim,
ylim,
xlab,
ylab,
col,
main
)
x |
A discrete matrix or an already computed character difference matrix of class |
... |
Any additional graphical arguments to be passed to |
type |
Either |
legend |
A logical value stating whether to print the legend or not (default = |
legend.title |
A |
legend.pos |
The position of the legend. Can be two |
legend.round |
A |
axis |
A logical value stating whether to print the axis or not (default = |
xlim |
Two |
ylim |
Two |
xlab |
A |
ylab |
A |
col |
Two colors for forming the gradient if |
main |
An overall title for the plot. |
Thomas Guillerme
char.diff
## Comparing two characters
char.diff(list(c(0, 1, 0, 1), c(0, 1, 1, 1)))
## Pairwise comparisons in a morphological matrix
morpho_matrix <- matrix(sample(c(0,1), 100, replace = TRUE), 10)
## Plotting a matrix
plot.char.diff(morpho_matrix)
## Plotting the density profile of a char.diff object
char.diff_matrix <- char.diff(morpho_matrix)
plot(char.diff_matrix, type = "density")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.