Re: [R] plotCI linetypes

2016-07-21 Thread Jim Lemon
Hi Florian, As I suspected, you will have to use something other than the "arrows" function, which most people use to draw "error bars". This is where the "lty" argument gets used for all of the lines. You could substitute a function like this: foobars<-function(x0,y0,x1,y1,length=0.02,col=par("fg

Re: [R] plotCI() with ggplot2

2011-03-09 Thread Kohske Takahashi
Hi, try this: d <- rbind(data.frame(M=1, v=1:2, m1), data.frame(M=2, v=1:2, m2)) ggplot(d, aes(v, ymin=lo, y=m, ymax=hi, colour=factor(M))) + geom_line(position=position_dodge(width=0.1)) + geom_pointrange(position=position_dodge(width=0.1)) -- Kohske Takahashi Research Center for Advance

Re: [R] plotCI() with ggplot2

2011-03-08 Thread Scott Chamberlain
The code to use would be something like limits <- aes(ymax = y + se, ymin = y - se) # set error bar dimensions ggplot(yourdataframe, aes(x = x, y = y, colour = z)) + geom_point() + geom_errorbar(limits) On Tuesday, March 8, 2011 at 9:34 AM, Sascha Vieweg wrote: > Hello > > Currently, I plot

Re: [R] plotCI() with ggplot2

2011-03-08 Thread ONKELINX, Thierry
Have a look at the examples of geom_errorbar() at the website: http://had.co.nz/ggplot2/geom_errorbar.html Best regards, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek team Biometrie & Kwaliteitszo

[R] plotCI() with ggplot2

2011-03-08 Thread Sascha Vieweg
Hello Currently, I plot some coefficients with some intervals using function "plotCI()" (package "gplots") using the following code: (m1 <- matrix(0:5, nrow=2, byrow=T, dimnames=list(c("v1", "v2"), c("lo", "m", "hi" m2 <- m1 + 1 library(gplots) plotCI( x=1:length(m1[, 1]), pch="",

Re: [R] plotCI overlay

2010-05-23 Thread Ben Bolker
Rick Reiss exponent.com> writes: > > > I'm using the plotCI function and I'd like to overlay additional means > with CIs onto an existing plotCI-created plot in a different color. Is > this possible? Thanks. > > Rick > > Assuming you mean the one from the plotrix package: use add=TRUE

[R] plotCI overlay

2010-05-23 Thread Rick Reiss
I'm using the plotCI function and I'd like to overlay additional means with CIs onto an existing plotCI-created plot in a different color. Is this possible? Thanks. Rick __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] plotCI line types for line and for bar

2009-05-13 Thread Ben Bolker
lehe wrote: > > Thank you! > Yes, I am using the plotCI from gplots and I want the line connecting the > centers to be dashed, just as for the bars. However changing the type to > be "p" as you said does not give dashed line but no line at all (only > points). > > Yes, but the next line l

Re: [R] plotCI line types for line and for bar

2009-05-13 Thread lehe
Thank you! Yes, I am using the plotCI from gplots and I want the line connecting the centers to be dashed, just as for the bars. However changing the type to be "p" as you said does not give dashed line but no line at all (only points). lehe wrote: > > Anyone has some clue to this question?

Re: [R] plotCI line types for line and for bar

2009-05-12 Thread Ben Bolker
Anyone has some clue to this question? Thanks in advance! lehe wrote: > > Hi, > I was wondering how to specify the line type for line instead of for bar. > Here is my code: > "plotCI(x=mcra1avg, uiw=stdev1, type="l",col=2,lty=2)" > This way, I will have the bar line as dashed "lty=2" and red

Re: [R] plotCI line types for line and for bar

2009-05-12 Thread lehe
Anyone has some clue to this question? Thanks in advance! lehe wrote: > > Hi, > I was wondering how to specify the line type for line instead of for bar. > Here is my code: > "plotCI(x=mcra1avg, uiw=stdev1, type="l",col=2,lty=2)" > This way, I will have the bar line as dashed "lty=2" and red "c

[R] plotCI line types for line and for bar

2009-05-12 Thread lehe
Hi, I was wondering how to specify the line type for line instead of for bar. Here is my code: "plotCI(x=mcra1avg, uiw=stdev1, type="l",col=2,lty=2)" This way, I will have the bar line as dashed "lty=2" and red "col=2", and the line connecting the centers of the bars is also red "col=2" but solid

Re: [R] plotCI (plotrix) problem

2009-04-19 Thread Dieter Menne
Derek Ogle northland.edu> writes: > > I am attempting to create a plot with intervals "stretched" in the > x-direction using plotCI() in the plotrix package. The same data > provides an appropriate set of intervals when "stretched" in the > y-direction but I only get a lower interval when "stre

Re: [R] plotCI (plotrix) problem

2009-04-19 Thread Dieter Menne
Derek Ogle northland.edu> writes: > > I am attempting to create a plot with intervals "stretched" in the > x-direction using plotCI() in the plotrix package. The same data > provides an appropriate set of intervals when "stretched" in the > y-direction but I only get a lower interval when "stre

[R] plotCI (plotrix) problem

2009-04-19 Thread Derek Ogle
I am attempting to create a plot with intervals "stretched" in the x-direction using plotCI() in the plotrix package. The same data provides an appropriate set of intervals when "stretched" in the y-direction but I only get a lower interval when "stretched" in the x-direction. The data are as

Re: [R] plotCI

2008-10-11 Thread Manuel Morales
On Fri, 2008-10-10 at 18:15 -0300, Caio Azevedo wrote: > Hi all, > > I am using the function "plotCI" with the following command: > > plotCI(m.residuos.p.2 [1:41],li=m.residuos.p.3 [1:41],ui=m.residuos.p.4 > [1:41],lty=1,ylab="") > > This generates exactly what I want except for the fact that I

Re: [R] plotCI

2008-10-11 Thread Jim Lemon
Caio Azevedo wrote: Hi all, I am using the function "plotCI" with the following command: plotCI(m.residuos.p.2 [1:41],li=m.residuos.p.3 [1:41],ui=m.residuos.p.4 [1:41],lty=1,ylab="") This generates exactly what I want except for the fact that I wanna drawn a line linking the points (m.residuos

Re: [R] plotCI

2008-10-11 Thread baptiste auguie
Hi it might be as simple as adding type = "b" in your call, however if you need more help you'll have to provide a reproducible example and explain what package you used (I think several packages define a plotCI function). Hope this helps, Baptiste On 10 Oct 2008, at 22:15, Caio Azeved

Re: [R] plotCI

2008-10-10 Thread Rolf Turner
On 11/10/2008, at 10:15 AM, Caio Azevedo wrote: Hi all, I am using the function "plotCI" with the following command: plotCI(m.residuos.p.2 [1:41],li=m.residuos.p.3 [1:41],ui=m.residuos.p.4 [1:41],lty=1,ylab="") This generates exactly what I want except for the fact that I wanna drawn a

[R] plotCI

2008-10-10 Thread Caio Azevedo
Hi all, I am using the function "plotCI" with the following command: plotCI(m.residuos.p.2 [1:41],li=m.residuos.p.3 [1:41],ui=m.residuos.p.4 [1:41],lty=1,ylab="") This generates exactly what I want except for the fact that I wanna drawn a line linking the points (m.residuos). How could I do tha

Re: [R] plotCI -- multiple plots on same graph

2008-09-12 Thread bioinformatics_guy
Thank you all for the help! I had a friend look at it and basically what he did was do an initial plot() of the line (which was all the mean values) and then use ylower and yupper to plot 2 addition line() which he set lyt=3 to so they would look like points. I know its a dirty hack but it worke

Re: [R] plotCI -- multiple plots on same graph

2008-09-12 Thread hadley wickham
> I have a bunch of lines I want to plot using plotCI() > > What Id like to know is, how can I connect the points with a line and how > can I print multiple lines on the same graph? You might want to have a look at ggplot2, e.g. http://had.co.nz/ggplot2/geom_errorbar.html, for an alternative way t

Re: [R] plotCI -- multiple plots on same graph

2008-09-12 Thread Jim Lemon
bioinformatics_guy wrote: I have a bunch of lines I want to plot using plotCI() What Id like to know is, how can I connect the points with a line and how can I print multiple lines on the same graph? At the moment, plotCI doesn't accept a type="b" argument. I'll see if I can fix it. You migh

Re: [R] plotCI -- multiple plots on same graph

2008-09-11 Thread brandon
1) Look into plotmeans(), a wrapper function for plotCIit may be more appropriate for what you're looking for and one of the default options is to connect the points with lines. Otherwise you'll have to do a separate call to lines() after each plotCI() call. 2) To put multiple data sets on the

[R] plotCI -- multiple plots on same graph

2008-09-11 Thread bioinformatics_guy
I have a bunch of lines I want to plot using plotCI() What Id like to know is, how can I connect the points with a line and how can I print multiple lines on the same graph? -- View this message in context: http://www.nabble.com/plotCImultiple-plots-on-same-graph-tp19435198p19435198.html Se