gwalkr function

Create GWalkR Interface in "Viewer"

Create GWalkR Interface in "Viewer"

Use this function to create a GWalkR interface from a given data frame in your "Viewer" window, and start your data exploration! Please make sure the width and the height of your "Viewer" window are large enough.

gwalkr( data, lang = "en", dark = "light", columnSpecs = list(), visConfig = NULL, visConfigFile = NULL, toolbarExclude = list(), kernelComputation = FALSE )

Arguments

  • data: A data frame to be visualized in the GWalkR. The data frame should not be empty.
  • lang: A character string specifying the language for the widget. Possible values are "en" (default), "ja", "zh".
  • dark: A character string specifying the dark mode preference. Possible values are "light" (default), "dark", "media".
  • columnSpecs: An optional list of lists to manually specify the types of some columns in the data frame. Each top level element in the list corresponds to a column, and the list assigned to each column should have two elements: analyticalType and semanticType. analyticalType can only be one of "measure" or "dimension". semanticType can only be one of "quantitative", "temporal", "nominal" or "ordinal". For example: list( "gender" = list(analyticalType = "dimension", semanticType ="nominal"), "age" = list(analyticalType = "measure", semanticType ="quantitative") )
  • visConfig: An optional config string to reproduce your chart. You can copy the string by clicking "export config" button on the GWalkR interface.
  • visConfigFile: An optional config file path to reproduce your chart. You can download the file by clicking "export config" button then "download" button on the GWalkR interface.
  • toolbarExclude: An optional list of strings to exclude the tools from toolbar UI. However, Kanaries brand info is not allowed to be removed or changed unless you are granted with special permission.
  • kernelComputation: An optional boolean to enable the kernel mode computation which is much more efficient. Default is FALSE.

Returns

An htmlwidget object that can be rendered in R environments

Examples

data(mtcars) gwalkr(mtcars)
  • Maintainer: Yue Yu
  • License: Apache License (>= 2)
  • Last published: 2024-10-02