search for: lai_simul

Displaying 2 results from an estimated 2 matches for "lai_simul".

2017 Jul 06
1
Convert date to continuous variable in R
Thanks it worked for me. I wanted to plot days since planting on x-axis 1 and years on x-axis 3. LAI_simulation$Date <- as.Date( LAI_simulation$Date, '%Y/%m/%d') LAI_simulation$Date <- as.integer(LAI_simulation$Date - as.Date("2009-10-07")) plot(LAI~Date,data=LAI_simulation,xlab="Days since Oct, 7, 2009",cex=0.3,cex.lab=1.2,xaxt="n",xaxs="i",yaxs=&qu...
2017 Jul 05
1
Convert date to continuous variable in R
...axes (1 and 3). Ex; Date LAI 10/7/2009 0 10/8/2009 0.004173 10/9/2009 0.009997 10/10/2009 0.009998 10/11/2009 0.009999 10/12/2009 0.009999 10/13/2009 0.009999 10/14/2009 0.009999 10/15/2009 0.009998 10/16/2009 0.009998 10/17/2009 0.009998 10/18/2009 0.009998 10/19/2009 0.009998 10/20/2009 0.009998 LAI_simulation$Date <- as.Date( LAI_simulation$Date, '%Y/%m/%d') plot(LAI~Date, data=LAI_simulation) LAI_simulation$Date<- as.numeric(LAI_simulation$Date,origin="2009-10-07") #R does not see the origin axis.Date(side=3,at=LAI_simulation$Date) Ahmed Attia, Ph.D. Agronomist & So...