get_model_display_order | R Documentation |
In loon
, if points (in scatter plot) or lines
(in parallel or radial coordinate) are highlighted, the displayed order will be changed.
This function always reflects the current displayed order
get_model_display_order(widget)
widget |
An |
if(interactive()) {
p <- l_plot(rnorm(10))
get_model_display_order(p)
p['selected'][c(1,3,5,7)] <- TRUE
# The 1st, 3rd, 5th, 7th points will be drawn afterwards
# to make sure that they are displayed on top
get_model_display_order(p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.