time_series <- get_finam_data( 'SBER', '2014-01-10', '2014-08-13', period = '10min' )
plot_ts( time_series[ time %bw% '2014-08-13', list( time, open, high, low, close ) ] )
plot_ts( time_series[ time %bw% '2014-08-13', list( time, volume = volume / 1e6 ) ] , type = 'h' )
plot_ts( time_series[ time %bw% '2014-08', list( time, close ) ] )
plot_ts( time_series[ , list( time, close ) ] )
time_series <- get_finam_data( 'SBER', '2014-01-10', '2014-08-13', period = '10min' )
mar = par( 'mar' )
par( mar = c( 0, 4, 0, 4 ), xaxt = 'n' )
layout ( matrix( 1:(3 + 2) ), heights = c( 1, 4, 2, 2, 1 ) )
empty_plot()
plot_ts( time_series[ , list( time, open, high, low, close ) ] )
plot_ts( time_series[ , list( time, close ) ] )
par( xaxt = 's' )
plot_ts( time_series[ , list( time, vol = vol / 1e6 ) ], type = 'h' )
empty_plot()
par( mar = mar )
Run the code above in your browser using DataLab