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)

Arguments

widget

An l_plot or l_serialaxes widget

Examples

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) }