The alternative Western bar chart

## [1] "DAL"
str(DAL)
## An 'xts' object on 2007-05-03/2016-03-21 containing:
##   Data: num [1:2237, 1:6] 21.8 21.2 21.2 20 19.8 ...
##  - attr(*, "dimnames")=List of 2
##   ..$ : NULL
##   ..$ : chr [1:6] "DAL.Open" "DAL.High" "DAL.Low" "DAL.Close" ...
##   Indexed by objects of class: [Date] TZ: UTC
##   xts Attributes:  
## List of 2
##  $ src    : chr "yahoo"
##  $ updated: POSIXct[1:1], format: "2016-03-22 10:30:25"
head(DAL)
##            DAL.Open DAL.High DAL.Low DAL.Close DAL.Volume DAL.Adjusted
## 2007-05-03    21.75    21.95   20.55     20.72    8052800     20.18692
## 2007-05-04    21.25    21.35   20.70     20.98    5437300     20.44023
## 2007-05-07    21.20    21.29   20.20     20.36    2646300     19.83619
## 2007-05-08    20.00    20.00   19.30     19.63    4166100     19.12496
## 2007-05-09    19.75    20.20   19.63     19.79    7541100     19.28085
## 2007-05-10    19.79    19.99   19.55     19.70    3170600     19.19317
barChart(DAL,subset='2016-01::2016',
         theme='white.mono', bar.type='ohlc', TA=NULL)

plot of chunk unnamed-chunk-3

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos necesarios están marcados *

Post Navigation