Sorry, the plot_linetypes[1] is a debugging leftover.
It's plot_linetypes[graph_idx] in my actual code ...
And plot_linetypes is just the sequence 1,2,3,4... etc
plotCI(
x = xvals.f[sorted],
y = yvals.f[sorted],
xlim = c(xmin, xmax), ylim = c(ymin, ymax),
pch =
You could look at the plotCI function in the plotrix package, which
has a separate parameter for setting the linetype of the error bars.
(An additional benefit is that it works with R 2.4.0 -- gplots seems
not to have been updated, or at least the windows binary hasn't, and
still includes a now
Thanks, I tried using plotCI in the plotrix library.
This, however, gives me the below error.
CODE::
cat(x = ); print(xvals.f[sorted])
cat(y = ); print(yvals.f[sorted])
cat(pch = ); print(plot_symbols[graph_idx])
cat(lty = ); print(plot_linetypes[graph_idx])
cat(col
Looking at the source code for plotCI, I see that it calls plot with
type specified as n when the error bars are not being added to an
existing plot, so you cannot use the type argument in a call to
plotCI. If you want to add lines as well as points, I think you will
have to use
Great, why didn't I think of that.
Thanks :)
If you want to add lines as well as points, I think you will
have to use lines(x,y,type=b,lty = plot_linetypes[graph_idx]) in
addition to plotCI,
__
R-help@stat.math.ethz.ch mailing list