I am trying to use a local CSV data file to create a Dygraph plot in R.
It seems everywhere I look the structure is below:
g = new Dygraph(document.getElementById("div"),
data,
{ options });
So far I have below:
library(dygraphs)# Calling ggplot 2 library
data <- read.csv("C:/Users/test/Documents/R/R-3.3.1/R CODE/MyData2.csv", header = TRUE) # reading .csv
My initial thought was:
new Dygraph(data <- read.csv("C:/Users/test/Documents/R/R-3.3.1/R CODE/MyData2.csv", header = TRUE) # reading .csv,
{ labels: [ "series1", "series2","series3"] });
How can I create a Dygraph by using csv.read.
Thanks.