LineFit | R Documentation |
LineFit
Linefit the observation and simulation
LineFit
LineFit(x, y = NULL, xlab = "Observation", ylab = "Simulation", ...)
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() |
Triangle mesh of model domain.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.