[R] R plot like candlestick

John Kane jrkrideau at inbox.com
Tue Jan 29 15:42:23 CET 2013

I have not had a change to look at the code but this appears to use ggplot2 to do something like what you want.  It may be of some use http://www.perdomocore.com/2012/using-ggplot-to-make-candlestick-charts-alpha/ .  The google search terms, ggplot2 candlestick, showed this and a couple of other possibly useful examples.

John Kane
Kingston ON Canada

> -----Original Message-----
> From: denis.francisci at gmail.com
> Sent: Mon, 28 Jan 2013 22:26:02 +0100
> To: r-help at r-project.org
> Subject: [R] R plot like candlestick
> Hi all,
> I'm new on this list so I greet all.
> My question is: does exist in R a plot similar to candlestick plot but
> not based on xts (time series)? I have to plot a range of 4 value: for
> every item I have min value, max value and 2 intermediate values. I
> would like plot this like a candlestick, i.e. with a box between 2
> intermediate values and 1 segment between box and min value and a
> segment between box and max value. Candlestick plot is provided by
> quantmod package, but it is very specific for financial purpose and it
> uses time series for x axis. I need a simpler method for plotting my
> data that are stored in a table like this:
> item, min, int_1, int_2, max
> a, 2.5, 3, 4, 5.5
> b, 2, 3.5, 4, 4.5
> c, 3.5, 4, 4.5, 5
> .....
> Does anyone know if there is an R-plot for this purpose?
> Thank you very much,
> D.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails

More information about the R-help mailing list