Hi,
xlim and ylim should be given the extremes only:

plot(x,y, xlim=c(pheno.dt$year[1],pheno.dt$year[nrow(pheno.dt)]), 
ylim=c(50,150), xlab="Year", ylab="Julian Day")
                                  ^^                                     ^^

Does it work now?

Ivan



Le 9/23/2010 11:44, fugelpitch a écrit :
> Sorry, but now I understand what you're doing, and it works as a stand-alone
> in the console! :)
>
> But why doesn't it work in the xlim?
>
> ______________________________________________________________________________
>> pheno.dt$year[1]
> [1] 1877
>
>> pheno.dt$year[nrow(pheno.dt)]
> [1] 1916
>
>> plot(x,y, xlim = c(pheno.dt$year[1]:pheno.dt$year[nrow(pheno.dt)]), ylim =
>> 50:150, xlab = "Year", ylab = "Julian Day")
> Error in plot.window(...) : invalid 'xlim' value
> Calls: plot ->  plot.default ->  localWindow ->  plot.window
> ______________________________________________________________________________

-- 
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Museum
Abt. Säugetiere
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calan...@uni-hamburg.de

**********
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php


        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to