Pass variables as parameters to plot_ly function
问题 I would like to create a function that creates different kinds of plotly plots based on the parameters that are passed into it. If I create the following data library(plotly) #### test data lead <- rep("Fred Smith", 30) lead <- append(lead, rep("Terry Jones", 30)) lead <- append(lead, rep("Henry Sarduci", 30)) proj_date <- seq(as.Date('2017-11-01'), as.Date('2017-11-30'), by = 'day') proj_date <- append(proj_date, rep(proj_date, 2)) set.seed(1237) actHrs <- runif(90, 1, 100) cummActHrs <-