Learn R Programming

canvasXpress (version 0.16.6)

canvasXpress: canvasXpress

Description

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

Usage

canvasXpress(data = NULL, decorData = NULL, smpAnnot = NULL,
  varAnnot = NULL, nodeData = NULL, edgeData = NULL, vennData = NULL,
  vennLegend = NULL, genomeData = NULL, newickData = NULL,
  graphType = "Scatter2D", events = NULL, afterRender = NULL,
  width = 600, height = 400, pretty = FALSE, digits = 4, ...,
  boxplotGroupData = NULL)

Arguments

data

canvasXpress data frame (rows are referred to as variables; columns are referred to as samples)

decorData

decoration/annotation data for the chart

smpAnnot

additional data that applies to samples (columns)

varAnnot

additional data that applies to variables (rows)

nodeData

network visualization data nodes

edgeData

network visualization data edges

vennData

venn visualization data

vennLegend

venn visualization legend

genomeData

genome visualization data

newickData

dendrogram data in Newick format

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

width

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

height

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

pretty

print tagged code (json/html) nicely - default = FALSE

digits

display digits - default = 4

...

additional configuration options passed to canvasXpress

boxplotGroupData

character label for grouped boxplot data. If there is a non-null value and graphType is 'Boxplot' pre-calculated boxplot data is used from the variables (iqr1, iqr3, qtl1, qtl3, median) and optionally the variable (outliers) in the data parameter. Note: Boxplot outliers should be specified as comma-separated string values in the outliers variable.

Value

htmlwidget object