#this gives the base schema
epijsonObjectVis()
#settin single box colour and increasing text size
epijsonObjectVis(colAll ='grey', textSize=7)
#this gives a diagram with named attributes
epijsonObjectVis( attribMeta = c("attribute: disease","attribute: data provider"),
attribRecord = c("attribute: gender","attribute: date of birth"),
attribEvent = c("attribute: recorder","attribute: test used") )
epijsonObjectVis( attribMeta = c("a"),
attribRecord = c("b","c"),
attribEvent = c("d","e","f") )
#repijson objects
epijsonObjectVis( attribMeta = 'ejAttribute',
attribRecord = 'ejAttribute',
attribEvent = 'ejAttribute',
labelObject = 'ejObject',
labelMeta = 'ejMetadata',
labelRecord = 'ejRecord',
labelEvent = 'ejEvent')
#repijson objects and constructors
epijsonObjectVis( attribMeta = 'ejAttribute create_ejAttribute()',
attribRecord = 'ejAttribute create_ejAttribute()',
attribEvent = 'ejAttribute create_ejAttribute()',
labelObject = 'repijson R objects and constructors : ejObject create_ejObject()',
labelMeta = 'ejMetadata create_ejMetadata()',
labelRecord = 'ejRecord create_ejRecord()',
labelEvent = 'ejEvent create_ejEvent()')
Run the code above in your browser using DataLab