Skip to content
Prev 277149 / 398503 Next

Subsetting data leads to funky plots

Hi,
On Sat, Nov 12, 2011 at 2:04 AM, Vinny Moriarty <vwmoriarty at gmail.com> wrote:
dput() with a sample of your data would be useful, so that we ca try
it. Among other things, the example you give above doesn't *have* the
values that you're subsetting on, so we can't easily try your specific
code.

str() of your data would also be useful. Are these factors? Strings?

The small reproducible example is important.
Is it? Did you look at Juv_Avg to make sure that it contains what you expect?
There's no type="L", although there is type="l"

Is Juv_Sum1 sorted by year? Without a reproducible example, I can't
see which of the many things that could go wrong have gone wrong. R
does exactly what you tell it, and it sounds like you may have given
it data that weren't sorted.

For that matter, there's no Juv_Sum1 in the code you gave, so I don't
have the slightest idea what might be in it.
This list is generally quite helpful, but not telepathic. See these
two lines from every message (below)? That's what we need.
Sarah