이 항목의 내용 How do I set width of candles in candle chart using plot.xts?에서 나는이 환상적인 촛대 플롯을 만드는 방법을 알게되었습니다. plot.xts
그러나 내가 그 게시물에서 코드를 시도했을 때 x 축을 올바르게 가져올 수 없습니다. 제가xts 플롯에서 x 축을 사용자 정의하는 방법
start <- as.Date('2007-01-03');end<-as.Date('2007-12-31')
from.dat <- start;to.dat <- end
getSymbols("C", src="yahoo", from = from.dat, to = to.dat)
candlecolors <- ifelse(C[,'C.Close'] < C[,'C.Open'], 'RED', 'GREEN')
plot.xts(C, type='candles',width=70000, candle.col=candlecolors, bar.col='BLACK',cex.axis=1.5,main='Candlestick plot of Citigroup (2007)',cex.main=2)
, X 축은 아니다 시도. 이 게시물의 컬러 플롯과 비슷한 것이 필요합니다. How do I set width of candles in candle chart using plot.xts?
미안 이미지를 게시 할만큼 충분한 평판을 얻지 못했습니다. 어떤 도움을 주셔서 감사합니다.
감사는
긴