vignettes/5_line_plots.R

## ---- echo=FALSE---------------------------------------------------------
suppressPackageStartupMessages(library("plotlytalk"))

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

df %>% plot_ly(x = ~seq, y = ~b, type = "scatter", mode = "lines")

## ------------------------------------------------------------------------
df %>% dropdown_lineplot(x="seq", yvars = letters)
Alanocallaghan/EdinbrPlotly documentation built on Jan. 22, 2018, 3:33 a.m.