drGeorgeXenakis / FREddyPro

Post-Processing GHG fluxes after calculations using EddyPro from the Full Output File
GNU General Public License v3.0
2 stars 1 forks source link

Use ggplot2 in `plotDaily` #6

Open ronnyhdez opened 2 years ago

ronnyhdez commented 2 years ago

Within the FREddyPro project we can run this to check the example plot:

> data(fluxes)
> fluxes=cleanFluxes(fluxes,sdCor=TRUE,sdTimes=3,distCor=TRUE,timesList=3,
+                    thresholdList=list(H=c(-100,1000),LE=c(-100,1000)))
> plotDaily(x=fluxes$co2_flux,day.x=fluxes$yday,type='o',
+           median=TRUE,ylim=c(-30,20),lty=c(1,2),col=c(1,2),quantiles=TRUE,
+           legend=TRUE,legendSide='topleft',
+           lwd=2,ylab="Fc (umol m"^2~" s"^-1~")",main="Harwood forest",cex.legend=0.9,
+           horiz.legend=FALSE)
> abline(h=0,lty=2)

image