l_getPlots.l_tour: Query a loon widget

Description Usage Arguments Value Examples

View source: R/l_getPlots.R

Description

A generic function to query the loon (tcl) widget from the given target

Usage

1
2
## S3 method for class 'l_tour'
l_getPlots(target)

Arguments

target

a loon object

Value

a loon widget

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if(interactive()) {
  p <- l_tour(iris[, -5])
  l_isLoonWidget(p) # FALSE
  q <- l_getPlots(p)
  l_isLoonWidget(q) # TRUE

  # `l_compound` widget
  p <- l_tour_pairs(tourr::flea[, -7])
  l_isLoonWidget(p) # FALSE
  q <- l_getPlots(p)
  l_isLoonWidget(q) # FALSE
  is(q, "l_compound") # TRUE
}

loon.tourr documentation built on Oct. 27, 2021, 5:09 p.m.