Check whether argument 'nseg' was provided. If not, propose default value based on Lavielle's criterium
number of segment
optimal number of segment selected with Lavielle's criterium
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.