## 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")
Run the code above in your browser using DataLab