[R] Error in plot.window(...) : need finite 'ylim' values
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Jan 5 17:49:48 CET 2012
My initial guess is because you don't have any complete cases: cf.
this behavior plot(c(NA, NA))
If that's not it, dput() your data so that it's useable by others.
Michael
On Thu, Jan 5, 2012 at 10:43 AM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> Please provide a pointer to the source of this problem so I can understand
> why it occurred.
>
> The data frame is:
>
> millc.tds.z
> MC-0.5 MC-1 MC-2 MC-30 MC-50
> 1994-01-20 NA NA 429 NA NA
> 1994-03-24 NA NA 479 NA NA
> 1994-04-21 NA NA 456 NA NA
> 1994-05-19 NA 193 336 NA NA
> 1994-06-13 NA NA 391 NA NA
> 1994-07-25 NA NA 381 NA NA
> 1994-12-27 NA NA 378 NA NA
> 1995-03-23 NA 232 NA NA NA
> 1995-03-28 NA NA 439 NA NA
> 1995-06-23 NA 249 273 NA NA
> 1995-07-28 NA 288 348 NA NA
> 1996-03-26 304 282 292 NA NA
> 1996-04-15 NA 340 320 NA NA
> 1996-04-16 NA NA NA NA NA
> 1996-06-12 NA NA NA 328 NA
> 1996-06-18 320 300 330 NA NA
> 1996-07-23 500 312 384 NA NA
> 1996-08-22 545 NA NA NA NA
> 1996-09-26 570 NA NA NA NA
> 1996-10-28 518 NA NA NA NA
> 1996-11-22 458 NA NA NA NA
> 1997-03-28 NA 388 NA NA NA
> 1997-05-28 NA 356 NA NA NA
> 1997-07-30 NA 502 NA NA NA
> 1998-04-16 NA 335 NA NA NA
> 1998-09-21 NA 748 NA NA NA
> 1999-05-19 NA 448 NA NA NA
> 1999-09-01 NA 676 NA NA NA
> 2000-03-30 NA 526 NA NA NA
> 2000-05-31 NA 426 NA NA NA
> 2001-04-25 NA 300 NA NA NA
> 2002-05-30 NA 310 NA NA NA
> 2002-07-30 NA 560 NA NA NA
> 2002-10-31 NA 930 NA NA NA
> 2003-03-28 NA 840 NA NA NA
> 2003-05-29 NA 360 NA NA NA
> 2003-09-19 NA 1100 NA NA NA
> 2003-11-24 NA 1100 NA NA NA
> 2004-03-30 NA 440 NA NA NA
> 2004-04-22 NA 450 NA NA NA
> 2004-07-19 NA 630 NA NA NA
> 2004-11-23 NA 830 NA NA NA
> 2005-04-29 NA 350 NA NA NA
> 2005-05-31 NA 490 NA NA NA
> 2005-07-28 NA 937 NA NA NA
> 2005-11-22 NA 1070 NA NA NA
> 2006-03-23 NA 548 NA NA NA
> 2006-06-21 NA 464 NA NA NA
> 2006-11-15 NA 1020 NA NA NA
> 2007-03-20 NA 636 NA NA NA
> 2007-04-25 NA 346 NA NA NA
> 2008-03-25 NA 506 NA NA NA
> 2008-03-27 NA 475 NA NA NA
> 2008-06-26 NA 372 395 NA NA
> 2008-07-30 NA 634 NA NA NA
> 2009-03-27 NA 475 NA NA NA
> 2009-04-29 NA 358 374 NA NA
> 2009-05-27 NA 315 347 NA NA
> 2009-08-19 NA 754 NA NA NA
> 2009-11-11 NA 1050 NA NA NA
> 2010-05-20 NA 280 NA NA NA
> 2010-08-12 NA 852 NA NA NA
> 2011-05-18 NA 410 NA NA NA
>
> The command I tried, and the results, are:
>
> plot(millc.tds.z, main = 'Mill Creek TDS', xlab = 'Time')
> Error in plot.window(...) : need finite 'ylim' values
> In addition: Warning messages:
> 1: In min(x) : no non-missing arguments to min; returning Inf
> 2: In max(x) : no non-missing arguments to max; returning -Inf
> 3: In min(x) : no non-missing arguments to min; returning Inf
> 4: In max(x) : no non-missing arguments to max; returning -Inf
>
> I have other data frames with columns of 'NA' that plot OK. I want to
> understand what makes this one different.
>
> TIA,
>
> Rich
>
> ______________________________________________
> R-help at r-project.org 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.
More information about the R-help
mailing list