canvasXpress: HTML Widget Creation

View source: R/canvasXpress.R

canvasXpressR Documentation

HTML Widget Creation

Description

Custom HTML widget creation function based on widget YAML and JavaScript for use in any html-compatible context

Usage

canvasXpress(
  data = NULL,
  smpAnnot = NULL,
  varAnnot = NULL,
  graphType = "Scatter2D",
  events = NULL,
  afterRender = NULL,
  pretty = FALSE,
  digits = 4,
  width = 600,
  height = 400,
  destroy = FALSE,
  ...
)

Arguments

data

data.frame-, matrix-, or list- classed data object

smpAnnot

additional data that applies to samples (columns)

varAnnot

additional data that applies to variables (rows)

graphType

type of graph to be plotted - default = "Scatter2D"

events

user-defined events (e.g. mousemove, mouseout, click and dblclick)

afterRender

event triggered after rendering

pretty

print tagged code (JSON/HTML) nicely - default = FALSE

digits

display digits - default = 4

width

plot width (valid CSS units) - default = 600px

height

plot height (valid CSS units) - default = 400px

destroy

used to indicate removal of a plot - default = FALSE

...

additional parameters passed to canvasXpress

Value

htmlwidgets object


neuhausi/canvasXpress documentation built on April 18, 2024, 7:15 a.m.