create_hist: Create interactive histogram

View source: R/create_hist.R

create_histR Documentation

Create interactive histogram

Description

Code adapted from Hmisc package's spike histograms.

Usage

create_hist(x, counts, values)

Arguments

x

Variable from dataset in vector form.

counts

Counts component of Hmisc::describe() output

values

Values component of Hmisc::describe() output

Value

Plotly figure containing spike histogram (numeric) or traditional histogram (character).

Examples

adsl <- safetyData::adam_adsl
create_hist(adsl$AGE)
create_hist(adsl$SITEID)


agstn/dataxray documentation built on Oct. 16, 2023, 11:16 p.m.