Description Usage Arguments Value Author(s) References See Also Examples

View source: R/fitsoilwater2.R

An interactive graphical adjustment of the soil water retention curve via Groenevelt and Grant (2004) formula. The nonlinear least-squares estimates can be achieved taking the graphical initial values.

1 | ```
fitsoilwater2(theta, x, x0 = 6.653, xlab = NULL, ylab = NULL, ...)
``` |

`theta` |
a numeric vector containing the values of soil water content. |

`x` |
a numeric vector containing pF (pore water suction) values. See |

`x0` |
the value of pF at which the soil water content becomes zero. The default is 6.653. |

`xlab` |
a label for the x axis; if is NULL, the label "pF" is used. |

`ylab` |
a label for the y axis; if is NULL, the label "Soil water content" is used. |

`...` |
further graphical arguments; see |

A plot of `theta`

versus `x`

and the curve of the current fitted model
according to the adjusted parameters in an external interactive panel.
Pressing the button "NLS estimates" a `nls`

summary of the
fitted model is printed on console whether convergence is achieved, otherwise
a warning box of "No convergence" is shown.

Anderson Rodrigo da Silva <[email protected]>

Groenevelt & Grant (2004). A newmodel for the soil-water retention curve that solves the problem
of residualwater contents. *European Journal of Soil Science*, 55:479-485.

1 2 3 4 5 | ```
w <- c(0.417, 0.354, 0.117, 0.048, 0.029, 0.017, 0.007, 0)
pF <- 0:7
fitsoilwater2(w, pF)
# End (not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.