Skip to content
Prev 316373 / 398503 Next

R plot like candlestick

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,0),inches=F,ylim=range(rmail2[,-1]),xaxt="n",ylab=""))
axis(1,seq_along(rmail2$item),labels=rmail2$item)

hth.

Am 28.01.2013 22:26, schrieb Denis Francisci: