This is based on the type of JSON file that the original nutrient Parallel Coordinates
was built off of. It seems to be sort of "row oriented", whereas rjson::toJSON
is "column oriented".
1 | df_to_json(df, file, varname = "foods")
|
df |
data.frame to convert |
file |
name of file to save to |
varname |
name of variable to assign to the JSON object |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.