View source: R/visualisations.R
visualiseOnePatientBinary | R Documentation |
Creates a simple visualisation for serial and binary prescription data for one patient
visualiseOnePatientBinary( df, patient, idColumn = "PATIENT", blockColumn = "block", dataColumn = "measure", dateColumn = "date.measure", prescriptionColumn = "prescription" )
df |
the response data frame. It needs to contain binary prescription information. |
patient |
The PATIENT ID number |
idColumn |
name of ID column: default is PATIENT |
blockColumn |
name of the block column: default is block |
dataColumn |
name of the data column: default is measure |
dateColumn |
name of date column: default is date.measure. This column has to be of class Date |
prescriptionColumn |
name of the prescription column: default is prescription (it has to be binary) |
a visualisation
## Not run: visualiseOnePatientBinary(results,patient = 10090, idColumn = 'PATIENT', blockColumn = 'block', dataColumn = 'sbp', dateColumn = 'date.sbp', prescriptionColumn = 'anyRAASBinary') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.