I have a horizontally oriented matrix with x = time and y = stocks' returns. I'd like to plot it with rCharts to make it interactive but I can't find HOW anywhere...
matrix is like:
matTest <- as.data.frame(matrix(rnorm(100,0,1), nrow = 5, ncol = 10))
colnames(matTest) <- c('t0','t1','t2','t3','t4','t5','t6','t7','t8','t9')
rownames(matTest) <- c('stock1','stock2','stock3', 'stock4','stock5')
do you know how can I do that?
Thank you very much
If you need an interactive table, you can use this code on your original data.
If you want an interactive time_series plot, first of all change the format of your data in this way:
Now use
rChartsto plot youttime_seriesNow you can change the plot's parameters to have the best outfit.