[R] lineplot.CI problem

hadley wickham h.wickham at gmail.com
Fri Feb 15 17:06:29 CET 2008


On Fri, Feb 15, 2008 at 8:18 AM, Dieter Vanderelst
<dieter_vanderelst at emailengine.org> wrote:
> Hi List,
>
>  I have a problem plotting data using the lineplot.CI command in the sciplot package.
>
>  I want to plot the data of 2 experimental cases using different lines (traces). Time is on the X-axis. The tricky thing is that the data collection in the second case started later than for the first case. This is to say: the first n data points for the second case are missing.
>
>  So far so good. However, when I plot the data using lineplot.CI, the standard error bars are not aligned correctly with the markers.
>
>  I know that this might be difficult to imagine. Here you can find an example: http://i254.photobucket.com/albums/hh115/MarkerMe/example.png
>
>  So, has anybody experienced this problem and solved it before? I think I could try padding the data of the second case with zeros to eliminate the missing data. But I hope there is a better solution.


If you post a reproducible example (i.e. some sample data), I'm sure
you would get contributions describing how to do what you want in base
graphics, lattice graphics and with ggplot2.

Hadley

-- 
http://had.co.nz/



More information about the R-help mailing list