vt_export_json {voronoiTreemap}R Documentation

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

n <- vt_testdata()
vt_export_json(n)
vt_export_json(n, file=tempfile())

[Package voronoiTreemap version 0.2.0 Index]