R/button_values.R

Defines functions button_values.l_serialaxes button_values.l_hist button_values.l_graph button_values.l_plot button_values.default button_values

button_values <- function(loon.grob, tabPanelName, input, colorList, ...) {
  obj <- character(0)
  class(obj) <- names(loon.grob$children)
  UseMethod("button_values", obj)
}

button_values.default <- function(loon.grob, tabPanelName, input, colorList, ...) NULL

button_values.l_plot <- function(loon.grob, tabPanelName, input, colorList, ...) {

  names <- c("all", "none", "invert", "deactive", "reactive", c(colorList, "colorApply"),
             "circle", "square", "triangle", "push", "pull", "alphaApply",
             "ocircle", "osquare", "otriangle",
             "ccircle", "csquare", "ctriangle",
             "glyphSet", "halign", "valign", "hdist",
             "vdist", "grid", "jitter", "reset",
             "absToPlus", "absToMinus",  "relToPlus", "relToMinus",
             "select", "plot", "world", "layerUp", "layerDown", "layerVisible",
             "layerInvisible", "layerPlus",
             "layerMinus", "scaleToLayer", "layerSet")
  setNames(rep(0L, length(names)), names)
}

button_values.l_graph <- function(loon.grob, tabPanelName, input, colorList, ...) {
  button_values.l_plot(loon.grob, tabPanelName, input, colorList)
}

button_values.l_hist <- function(loon.grob, tabPanelName, input, colorList, ...) {

  names <- c("all", "none", "invert", "deactive", "reactive", c(colorList, "colorApply"),
             "plot", "world", "layerUp", "layerDown", "layerVisible", "push", "pull",
             "layerInvisible", "layerPlus", "binwidth", "origin",
             "layerMinus", "scaleToLayer", "layerSet")
  x <- setNames(rep(0L, length(names)), names)

  args <- list(...)
  loonWidgetsInfo <- args$loonWidgetsInfo

  x["binwidth"] <- loonWidgetsInfo$binwidth
  x["origin"] <- loonWidgetsInfo$origin
  x
}

button_values.l_serialaxes <- function(loon.grob, tabPanelName, input, colorList, ...) {

  names <- c("all", "none", "invert", "deactive", "reactive", c(colorList, "colorApply"),
             "alphaApply", "absToPlus", "absToMinus",  "relToPlus", "relToMinus",
             "push", "pull")
  setNames(rep(0L, length(names)), names)
}

Try the loon.shiny package in your browser

Any scripts or data that you put into this service are public.

loon.shiny documentation built on Oct. 8, 2022, 5:05 p.m.