area_height <- function(shapey, h=0:100){
afull = area.owin(owin(poly=shapey$poly))
100 * sapply(h, function(ht){
area.owin(owin(poly=clip_height(shapey,ht,0)))
}
) / afull
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.