dropdown_lineplot: A line plot with selectable y variables.

View source: R/lineplot.R

dropdown_lineplotR Documentation

A line plot with selectable y variables.

Description

A line plot with selectable y variables.

Usage

dropdown_lineplot(df, x, yvars)

Arguments

df

A data.frame

x

The column name (as a string) of the x variable

yvars

The column names (as strings) to be used as y variables

Value

A plotly object

Examples

set.seed(42)
df <- lapply(1:26, function(x) rnorm(50))
df <- as.data.frame(df)
colnames(df) <- letters
df[["seq"]] <- 1:50
dropdown_lineplot(df, x="seq", yvars = letters)

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