View source: R/read.markups.json.r
read.markups.json | R Documentation |
This function imports a JSON file into R. It utilizes function "fromJSON" from the package "jsonlite" to read a JSON file.
read.markups.json(file = NULL)
file |
The file path that leads to a particular JSON file. |
An array/matrix that contains the landmark coordinates.
Row numbers = number of landmarks;
Column numbers = dimensions of the landmark coordinates
Row names are assigned from the labels in the FCSV file
Column names are assigned as "x", "y", and "z", depending on the dimension
lms = read.markups.json(file = url("https://raw.githubusercontent.com/SlicerMorph/SampleData/master/Gorilla_template_LM1.json")) #Return a 41x3 matrix; rownames = labels in the FCSV file; colnames = "x", "y", "z"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.