View source: R/selectable_histogram.R
selectable_histogram | R Documentation |
A scatterplot with dropdown menus to select the x/y variables and the variable used to colour the points
selectable_histogram(
vars,
title = "",
histnorm = c("probability density", "", "percent", "probability", "density")
)
vars |
data.frame or matrix of variables (each column will be a separate histogram). |
title |
Plot title |
histnorm |
See https://plot.ly/javascript/reference/#histogram-histnorm |
df <- lapply(1:10, function(...) rnorm(1000))
df <- as.data.frame(df)
colnames(df) <- paste("Histogram", letters[1:10])
selectable_histogram(df, "Interactive histogram")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.