[R] set linetype with plotCI

David Barron mothsailor at googlemail.com
Mon Oct 16 12:14:50 CEST 2006


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 defunct feature.)

On 16/10/06, JeeBee <JeeBee at troefpunt.nl> wrote:
> 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 = plot_symbols[graph_idx], type = "b",
> >         lty = plot_linetypes[1],
> >       col = plot_colors[graph_idx],
> >         barcol = plot_colors[graph_idx], uiw = NA,
> >       xlab = "", ylab = "",
> >       add = (plot_cnt > 0)
> > )
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>


-- 
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP



More information about the R-help mailing list