# NOT RUN {
# Load the data
data(Dragonera)
# Parameters
Uxlab<-"Ux (m/s)"
Uylab<-"Vy (m/s)"
ref<-Dragonera[["ref"]]
mod<-Dragonera[["mod"]]
# Index
SailoR.Indices(ref,mod)
#--------------------------------------------------------
# Example 1: Figure 5 (left) from S<U+00E1>enz et al. (2020)
#--------------------------------------------------------
Uxlim=c(-10,10)
Uylim=c(-10,10)
sfactor<-1
plotmain<-"Dragonera U10/V10"
p <- SailoR.Plot(ref,mod,ColourList=NULL,sfactor,docenter=TRUE,
Uxlim,Uylim,Uxlab,Uylab,plotmain,plotlegend=TRUE,
plotRMSElegend=TRUE,
plotscalelegend=TRUE,
RMSE_legend_Rounding=1,RMSE_legend_units = " m/s",
referenceName="Reference")
# Add segments
segments(-1,-1, x1 = -1, y1 = 1,col="brown",lwd=4)
segments(-1,-1, x1 = 1, y1 = -1,col="brown",lwd=4)
segments(1,-1, x1 = 1, y1 = 1,col="brown",lwd=4)
segments(1,1, x1 = -1, y1 = 1,col="brown",lwd=4)
#--------------------------------------------------------
# Example 2: Figure 5 (right) from S<U+00E1>enz et al. (2020)
#--------------------------------------------------------
Uxlim=c(-1,1)
Uylim=c(-1,1)
sfactor<-0.025
plotmain<-"Dragonera U10/V10 (scaled)"
SailoR.Plot(ref,mod,ColourList=NULL,sfactor,docenter=FALSE,
Uxlim,Uylim,Uxlab,Uylab,plotmain,plotlegend=TRUE,
plotRMSElegend=TRUE,
plotscalelegend=TRUE,
RMSE_legend_Rounding=1,RMSE_legend_units = " m/s",
referenceName="Reference")
# }
Run the code above in your browser using DataLab