LineFit: Linefit the observation and simulation 'LineFit'

Description Usage Arguments Value Examples

View source: R/Hydro_obs.R

Description

Linefit the observation and simulation LineFit

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)
}

happynotes/PIHMgisR documentation built on Jan. 25, 2020, 9:51 p.m.