dropdown_lineplot | R Documentation |
A line plot with selectable y variables.
dropdown_lineplot(df, x, yvars)
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 |
A plotly object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.