LineFit: Linefit the observation and simulation 'LineFit'

View source: R/Hydro_obs.R

LineFitR Documentation

Linefit the observation and simulation LineFit

Description

Linefit the observation and simulation LineFit

Usage

LineFit(x, y = NULL, xlab = "Observation", ylab = "Simulation", ...)

Arguments

x

Observation data or matrix/data.frame consist of observation and simulation

y

Simulation data

xlab

xlab, default is 'Observation'

ylab

ylab, default is 'Simulation'

...

more options for stat_poly_eq()

Value

Triangle mesh of model domain.

Examples

obs <- rnorm(100)
sim <- obs+rnorm(100)/2
p <- LineFit(cbind(obs,sim))
p
if(require(ggpmisc)){
formula = y ~ x
p+ ggpmisc::stat_poly_eq(aes(label = paste(..eq.label.., ..rr.label.., sep = "~~~")), 
label.x.npc = "right", label.y.npc = 0.15,
formula = formula, parse = TRUE, size = 3)
}

SHUD-System/SHUDtoolbox documentation built on Nov. 27, 2024, 5:54 a.m.