Movatterモバイル変換


[0]ホーム

URL:


Plotting options

Loading dataset and libraries

library(flexFitR)library(dplyr)library(kableExtra)library(ggpubr)library(purrr)data(dt_potato)head(dt_potato)|>kable()
TrialPlotRowRangegidDAPCanopyGLI
HARS20_chips111W17037-2400.0000.0000000
HARS20_chips111W17037-24290.0000.0027216
HARS20_chips111W17037-24360.670-0.0008966
HARS20_chips111W17037-244215.1140.0322547
HARS20_chips111W17037-245675.4240.2326896
HARS20_chips111W17037-247699.8110.3345619

Modeling

plots<-2:7mod<- dt_potato|>modeler(x = DAP,y = Canopy,grp = Plot,fn ="fn_logistic",parameters =c(a =4,t0 =40,k =100),subset = plots  )

Plotting predictions and derivatives

# Raw data with fitted curvesplot(mod,type =1,color ="blue",id = plots,title ="Fitted curves")

plot derivatives

# Model coefficientsplot(mod,type =2,color ="blue",id = plots,label_size =10)

plot coef

# Fitted curves onlyc<-plot(mod,type =3,color ="blue",id = plots,title ="Fitted curves")
# Fitted curves with confidence intervalsd<-plot(mod,type =4,n_points =200,title ="Fitted curve (uid = 2)")
# First derivative with confidence intervalse<-plot(mod,type =5,n_points =200,title ="1st Derivative (uid = 2)")
# Second derivative with confidence intervalsf<-plot(mod,type =6,n_points =200,title ="2nd Derivative (uid = 2)")ggarrange(c, d, e, f)

plot derivatives


[8]ページ先頭

©2009-2025 Movatter.jp