Skip to content

Commit

Permalink
Fixed addVlines Bug
Browse files Browse the repository at this point in the history
The bug consisted of conversion of data that werent compatible with existing coding
  • Loading branch information
serkor1 committed Oct 26, 2023
1 parent 8d748cc commit 662d909
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/chart_indicators.R
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ addRSI <- function(
#' @export
addVlines <- function(plot, object, color = 'steelblue') {

quote <- toDF(
object
)
# quote <- toDF(
# object
# )

# 1) extract the main
# chart from the plot
Expand All @@ -480,7 +480,7 @@ addVlines <- function(plot, object, color = 'steelblue') {
shapes = do.call(
list,
lapply(
zoo::index(quote),
zoo::index(object),
function(x) {

vline(
Expand All @@ -494,7 +494,7 @@ addVlines <- function(plot, object, color = 'steelblue') {
)

plot$main <- plot_
attributes(plot)$quote <- toDF(quote)
# attributes(plot)$quote <- toDF(quote)

return(
invisible(plot)
Expand Down

0 comments on commit 662d909

Please sign in to comment.