[R] Multiple Plotting help (lines don't always connect)
hadley wickham
h.wickham at gmail.com
Tue Aug 19 00:15:44 CEST 2008
On Mon, Aug 18, 2008 at 3:54 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
>
> On 19/08/2008, at 1:04 AM, stephen sefick wrote:
>
>> The real data are counts of aquatic insects at distinct locations on a
>> river continuum on the way down a river, so the when a point point on
>> the graph is missing (lost sampling equipment for that month) the
>> points downstream (toward the right) are valid to show a trend.
>> Aren't they?
>
> Quite possibly; I wouldn't really know. However it would be less than
> honest to plot the interpolated/inferred points as if they were genuine
> data points. By all means plot the interpolations, but distinguish them,
> e.g. by joining them to their neighbours by dotted lines (where real points
> are joined to each other by solid lines).
x <- sort(runif(10))
y <- runif(10)
plot(x, y, type="l")
Doesn't a line plot inherently display a set of linear interpolations?
Hadley
--
http://had.co.nz/
More information about the R-help
mailing list