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