@@ -20,9 +20,9 @@ function (n = 20, ..., on = NA, legend = "auto")
2020 ylim <- c(0 ,100 )
2121 theme <- x $ Env $ theme
2222
23- lines(x.pos , Aroon [,1 ], col = theme $ aroon $ col $ aroonUp ,
23+ lines(x.pos , Aroon [,1 ], col = theme $ Aroon $ col $ aroonUp ,
2424 lwd = 1 , lend = 2 , ... )
25- lines(x.pos , Aroon [,2 ], col = theme $ aroon $ col $ aroonDn ,
25+ lines(x.pos , Aroon [,2 ], col = theme $ Aroon $ col $ aroonDn ,
2626 lwd = 1 , lend = 2 , ... )
2727 }
2828 if (! is.character(legend ) || legend == " auto" )
@@ -39,7 +39,7 @@ function (n = 20, ..., on = NA, legend = "auto")
3939 legend = c(paste(legend , " :" ),
4040 paste(" aroonUp :" ,format(last(Aroon [xsubset ,1 ]),nsmall = 3L )),
4141 paste(" aroonDn :" ,format(last(Aroon [xsubset ,2 ]),nsmall = 3L ))),
42- text.col = c(theme $ fg , theme $ aroon $ col $ aroonUp , theme $ aroon $ col $ aroonDn ),
42+ text.col = c(theme $ fg , theme $ Aroon $ col $ aroonUp , theme $ Aroon $ col $ aroonDn ),
4343 xjust = lc $ xjust ,
4444 yjust = lc $ yjust ,
4545 bty = " n" ,
@@ -61,9 +61,10 @@ function (n = 20, ..., on = NA, legend = "auto")
6161 lchob <- current.chob()
6262 ncalls <- length(lchob $ Env $ call_list )
6363 lchob $ Env $ call_list [[ncalls + 1 ]] <- match.call()
64- if (is.null(lchob $ Env $ theme $ aroon $ col $ arronUp )) {
65- lchob $ Env $ theme $ aroon $ col $ aroonUp <- 3
66- lchob $ Env $ theme $ aroon $ col $ aroonDn <- 4
64+ if (is.null(lchob $ Env $ theme $ Aroon )) {
65+ lchob $ Env $ theme $ Aroon $ col $ aroonUp <- 3
66+ lchob $ Env $ theme $ Aroon $ col $ aroonDn <- 4
67+ lchob $ Env $ theme $ Aroon $ col $ aroonOsc <- 3
6768 }
6869 xdata <- lchob $ Env $ xdata
6970 xdata <- cbind(Hi(xdata ),Lo(xdata ))
@@ -97,7 +98,7 @@ function (n = 20, ..., on = NA, legend = "auto")
9798 ylim <- range(AroonOsc ,na.rm = TRUE )
9899 theme <- x $ Env $ theme
99100
100- lines(x.pos , AroonOsc , col = theme $ aroon $ col $ aroonOsc ,
101+ lines(x.pos , AroonOsc , col = theme $ Aroon $ col $ aroonOsc ,
101102 lwd = 1 , lend = 2 , ... )
102103 }
103104 if (! is.character(legend ) || legend == " auto" )
@@ -135,8 +136,10 @@ function (n = 20, ..., on = NA, legend = "auto")
135136 lchob <- current.chob()
136137 ncalls <- length(lchob $ Env $ call_list )
137138 lchob $ Env $ call_list [[ncalls + 1 ]] <- match.call()
138- if (is.null(lchob $ Env $ theme $ aroon $ col $ aroonOsc )) {
139- lchob $ Env $ theme $ aroon $ col $ aroonOsc <- 3
139+ if (is.null(lchob $ Env $ theme $ Aroon )) {
140+ lchob $ Env $ theme $ Aroon $ col $ aroonUp <- 3
141+ lchob $ Env $ theme $ Aroon $ col $ aroonDn <- 4
142+ lchob $ Env $ theme $ Aroon $ col $ aroonOsc <- 3
140143 }
141144 xdata <- lchob $ Env $ xdata
142145 xdata <- cbind(Hi(xdata ),Lo(xdata ))
0 commit comments