create_hist | R Documentation |
Code adapted from Hmisc package's spike histograms.
create_hist(x, counts, values)
x |
Variable from dataset in vector form. |
counts |
Counts component of Hmisc::describe() output |
values |
Values component of Hmisc::describe() output |
Plotly figure containing spike histogram (numeric) or traditional histogram (character).
adsl <- safetyData::adam_adsl
create_hist(adsl$AGE)
create_hist(adsl$SITEID)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.