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 "col=2", and
> the line connecting the centers of the bars is also red "col=2" but solid
> "lty=1". How to make the line connecting the bar centers have the same
> solid lty as the bar?
> Thanks and regards!
>
>
You neglected to say that you were using the plotCI from gplots (not the
one from plotrix, which has slightly different behaviors). Here's my
solution (with some data made up -- you didn't give a reproducible example).
I assume that you meant above that you wanted the line connecting the
centers to be dashed?
mcra1avg <- 1:3
stdev1 <- c(0.2,0.1,0.4)
library(gplots)
plotCI(x=mcra1avg, uiw=stdev1, type="p",col=2,lty=2)
lines(mcra1avg,col=2,lty=2)
By the way, it's not all uncommon to have to wait more than 12 hours for a
response on the R list -- the variability is very high ... I would say it's
generally good to wait at least 24 hours before "bumping" ...
Ben Bolker
--
View this message in context:
http://www.nabble.com/plotCI-line-types-for-line-and-for-bar-tp23501900p23514482.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.