Created
April 8, 2016 08:14
-
-
Save Buttonwood/f46f7611198209991203c11563bd6f7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Args <- commandArgs() | |
library('rCharts', 'ramnathv') | |
df <- read.csv(Args[4],header = FALSE, sep = ";") | |
#num <- df[,c(1,2,4,6)] | |
num <- df[,c(1,2,3)] | |
#time <- df[,c(1,3,5,7)] | |
colnames(num) <- c("date","num", "time") | |
#colnames(time) <- c("date","1", "3","20") | |
transform(num, date = as.character(date)) | |
#transform(time, date = as.character(date)) | |
#m1 <- mPlot(x = "date", y = c("num", "time"), type = "Line", data = num) | |
m1 <- mPlot(x = "date", y = c("num"), type = "Line", data = num) | |
m1$set(pointSize = 0, lineWidth = 1) | |
#m1$print("num") | |
library("base64enc") | |
m1$save(Args[5], 'inline', standalone=TRUE) | |
m1 <- mPlot(x = "date", y = c("time"), type = "Line", data = num) | |
m1$set(pointSize = 0, lineWidth = 1) | |
m1$save(Args[6], 'inline', standalone=TRUE) |
Author
Buttonwood
commented
Apr 8, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment