Description Usage Arguments Value Examples
Transform a data frame into a string formatted in GeoJSON
1 | df2geojson(df, multipleValuesByTime = c())
|
df |
Data frame to convert in GeoJSON. It must contain at least columns 'id', 'time', 'X' and 'Y'. Additionnal columns will be added as features' properties. |
multipleValuesByTime |
Vector of strings indicating the df columns names which can contain several values by time. |
a geojson string
1 2 3 | library(SMITIDvisu)
data(transmissiontree)
geojson <- df2geojson(tt.events, multipleValuesByTime = c('infectedby', 'probabilities'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.