When I call chart_Series from a script I get a blank, white graphics device only. Example code:
Lines <- "2018-01-02;2683.73;2695.89;2682.36;2695.81
2018-01-03;2697.85;2714.37;2697.77;2713.06
2018-01-04;2719.31;2729.29;2719.07;2723.99
2018-01-05;2731.33;2743.45;2727.92;2743.15
2018-01-08;2742.67;2748.51;2737.60;2747.71
2018-01-09;2751.15;2759.14;2747.86;2751.29"
a <- as.xts (read.csv2.zoo (text = Lines,
col.names = c("Date", "Open", "High", "Low", "Close"),
header=F, stringsAsFactors = F, dec = ".", FUN = as.POSIXct))
chart_Series (a)
When I call "chart_Series (a)" on the R console it runs fine.
What's the issue with sourced chart_Series?
packageVersion("quantmod") [1] '0.4.13'