
Open the Chart Builder app pre-loaded with an R data frame
ChartBuilder.RdLaunches the standalone Chart Builder (an HTML/CSS/JS Plotly app) in the
default browser with data already loaded, dropping the user straight onto
the data-setup screen. This is a one-way, interactive launcher: data flows
from R into the browser, and the finished chart is exported from within the
app. There is no automated round-trip back to R.
Usage
ChartBuilder(
data,
app_dir = getOption("nourkit.chart_builder_dir", system.file("Chart_Builder", package =
"scSidekick")),
filename = NULL,
max_rows = NULL,
launch = TRUE
)Arguments
- data
A
data.frame(or object coercible withas.data.frame()), or a Seurat object - in which case itsmeta.dataslot is used.- app_dir
Character. Path to the Chart Builder app directory (the folder containing
chart_builder.html). Defaults to the bundled copy inside the scSidekick package (inst/Chart_Builder), orgetOption("nourkit.chart_builder_dir")if set.- filename
Character. Name shown in the app for the loaded dataset. Defaults to the deparsed name of
datawith a.csvsuffix.- max_rows
Integer or
NULL. If set anddatahas more rows, a random sample ofmax_rowsrows is sent (keeps the payload small).NULL(default) sends everything; the app itself samples large data for plotting. A warning is issued for very large frames.- launch
Logical. Open the browser? Default
TRUE.FALSEbuilds the session directory and returns its path without opening (useful for tests).