Learn R Programming

Momocs (version 1.2.9)

plot_mshapes: Pairwise comparison of a list of shapes

Description

"Confusion matrix" of a list of shapes. See examples.

Usage

plot_mshapes(x, size = 3/4, col2 = "#FF0000")

Arguments

x

a list of shapes (eg as returned by mshapes)

size

numeric shrinking factor for shapes (and coo_template; 3/4 by default)

col2

color as hexadecimal ("#FF0000", eg red, by default)

Examples

Run this code
# NOT RUN {
bot %>% efourier(6) %>% mshapes("type") %>% plot_mshapes
# above, a shortcut for working with the result of mshapes
# but works on list of shapes, eg:
leaves <- shapes %>% slice(grep("leaf", names(shapes))) %$% coo
class(leaves)
leaves %>% plot_mshapes(col2="#0000FF")
# }

Run the code above in your browser using DataLab