Title: | Interactive Exploratory Data Analysis Tool |
---|---|
Description: | Simplify your R data analysis and data visualization workflow by turning your data frame into an interactive 'Tableau'-like interface, leveraging the 'graphic-walker' JavaScript library and the 'htmlwidgets' package. |
Authors: | Yue Yu [aut, cre] , Kanaries Data Inc. [cph, fnd] |
Maintainer: | Yue Yu <[email protected]> |
License: | Apache License (>= 2) |
Version: | 0.2.0 |
Built: | 2024-12-07 06:10:31 UTC |
Source: | https://github.com/Kanaries/GWalkR |
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 )
gwalkr( data, lang = "en", dark = "light", columnSpecs = list(), visConfig = NULL, visConfigFile = NULL, toolbarExclude = list(), kernelComputation = FALSE )
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: |
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. |
An htmlwidget
object that can be rendered in R environments
data(mtcars) gwalkr(mtcars)
data(mtcars) gwalkr(mtcars)
Output and render functions for using gwalkr within Shiny applications and interactive Rmd documents.
gwalkrOutput(outputId, width = "100%", height = "100%") renderGwalkr(expr, env = parent.frame(), quoted = FALSE)
gwalkrOutput(outputId, width = "100%", height = "100%") renderGwalkr(expr, env = parent.frame(), quoted = FALSE)
outputId |
output variable to read from |
width , height
|
Must be a valid CSS unit (like |
expr |
An expression that generates a gwalkr |
env |
The environment in which to evaluate |
quoted |
Is |
gwalkrOutput
: A shinyWidgetOutput
object for the root HTML element.
renderGwalkr
: A server-side function to help Shiny display the GWalkR visualization.
# !formatR library(GWalkR) library(shiny) data(mtcars) app <- shinyApp( ui = fluidPage( titlePanel("Explore the data here: "), gwalkrOutput("mygraph") ), server = function(input, output, session) { output$mygraph = renderGwalkr( gwalkr(mtcars) ) } ) if (interactive()) app
# !formatR library(GWalkR) library(shiny) data(mtcars) app <- shinyApp( ui = fluidPage( titlePanel("Explore the data here: "), gwalkrOutput("mygraph") ), server = function(input, output, session) { output$mygraph = renderGwalkr( gwalkr(mtcars) ) } ) if (interactive()) app