Skip to contents

Useful to display differences between shapes

Usage

coo_ruban(coo, dev, palette = col_heat, normalize = TRUE, ...)

Arguments

coo

a shape, typically a mean shape

dev

numeric a vector of distances or anythinh relevant

palette

the color palette to use or any palette

normalize

logical whether to normalize (TRUE by default) distances

...

other parameters to fed segments, eg lwd (see examples)

Value

a plot

Examples

ms <- MSHAPES(efourier(bot , 10), "type")
#> 'norm=TRUE' is used and this may be troublesome. See ?efourier #Details
b <- ms$shp$beer
w <- ms$shp$whisky
# we obtain the mean shape, then euclidean distances between points
m <- MSHAPES(list(b, w))
d <- edm(b, w)
# First plot
coo_plot(m, plot=FALSE)
coo_draw(b)
coo_draw(w)
coo_ruban(m, d, lwd=5)


#Another example
coo_plot(m, plot=FALSE)
coo_ruban(m, d, palette=col_summer2, lwd=5)


#If you want linewidth rather than color
coo_plot(m, plot=FALSE)
coo_ruban(m, d, palette=col_black)