Learn R Programming

voronoiTreemap (version 0.2.0)

vt_export_json: vt_export_json

Description

exports a node to suitable json required by voronoi javascript function

Usage

vt_export_json(node, file = NULL)

Arguments

node

a Node object generated by vt_create_node or returned from vt_add_nodes

file

path where the json should be written to, if NULL, the json is returned as a character

Value

NULL or a character vector

See Also

vt_create_node vt_add_nodes

Examples

Run this code
# NOT RUN {
n <- vt_testdata()
vt_export_json(n)
vt_export_json(n, file=tempfile())
# }

Run the code above in your browser using DataLab