Stock candlestick drawing issues with geom_boxplot (R)
I am using geom_boxplot to draw candlesticks using stock market data. The problem is that the individual boxplot's upper and lower edges as well as the upper whisker end point show up way higher on the y-axis than their corresponding values. The relative height (difference between upper and lower edges) and the end point of the lower whisker of each boxplot are fine though. Here's my code : candlestickPlot <- function(x){ library("ggplot2") # x is a data.frame with columns 'date','open','high','low','close' x$candleLower <- pmin(x$open, x$close) x$candleUpper <- pmax(x$open, x$close) x