selectable_histogram: selectable_histogram

View source: R/selectable_histogram.R

selectable_histogramR Documentation

selectable_histogram

Description

A scatterplot with dropdown menus to select the x/y variables and the variable used to colour the points

Usage

selectable_histogram(
  vars,
  title = "",
  histnorm = c("probability density", "", "percent", "probability", "density")
)

Arguments

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

Examples

df <- lapply(1:10, function(...) rnorm(1000))
df <- as.data.frame(df)
colnames(df) <- paste("Histogram", letters[1:10])
selectable_histogram(df, "Interactive histogram")


Alanocallaghan/plotlyutils documentation built on May 3, 2023, 8:34 p.m.