get_model_display_order: Get the Order of the Display

View source: R/loonGrob.R

get_model_display_orderR Documentation

Get the Order of the Display

Description

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

Usage

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

loon documentation built on July 9, 2023, 5:48 p.m.