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
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
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
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
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="",
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
25 matches
Mail list logo