plot_diagnostic: plot_diagnostic

Description Usage Arguments Value Author(s) Examples

Description

Function to create an estimation diagnostic plot composed of:

Usage

1

Arguments

x

A VES object, The VES must be intepreted.

Value

This function returns a ggplot2 object

Author(s)

Oscar Garcia-Cabrejo, khaors@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(grid)
data(ves_data1)
ab2 <- ves_data1$ab2
apprho <- ves_data1$apprho
sev1a <- ves(id= "VES1", ab2 = ab2, apprho = apprho)
rho <- c(40, 70, 30, 20)
thick <- c(2, 10, 50, 500)
par0 <- c(rho, thick)
res.nls1 <- calibrate_nls(sev1a, par0, iterations = 30, ireport = 5, trace = FALSE)
sev1a$rhopar <- res.nls1$rho
sev1a$thickpar <- res.nls1$thickness
sev1a$interpreted <- TRUE
p1 <- plot_diagnostic(sev1a)
grid.draw(p1)

khaors/rves documentation built on May 29, 2019, 3:07 a.m.