Re: [R] R plot like candlestick

2013-01-29 Thread John Kane
other possibly useful examples. John Kane Kingston ON Canada > -Original Message- > From: denis.franci...@gmail.com > Sent: Mon, 28 Jan 2013 22:26:02 +0100 > To: r-help@r-project.org > Subject: [R] R plot like candlestick > > Hi all, > I'm new on this list so

Re: [R] R plot like candlestick

2013-01-29 Thread Denis Francisci
Wonderful! Thank you Eik! I thought there was a specific package or plot to get my purpose, but your idea solves perfectly my problem. Maybe I could try to write a simple R function using your suggest, just to make fast my work. If I can get a result, I'll announce it in this list. Thank you very m

Re: [R] R plot like candlestick

2013-01-29 Thread Eik Vettorazzi
Hi Denis, there is no "if", only "how" in R ;) how about this: rmail2<-read.table(textConnection("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"),header=T,sep=",") with(rmail2,symbols(item, (int_1+ int_2)/2, boxplots=cbind(.25, int_2-int_1, int_1-min,max-int_2

[R] R plot like candlestick

2013-01-28 Thread Denis Francisci
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