# NOT RUN {
#--------------------------------------------------------
# Example 1: Figure 5 (left) from S<U+00E1>enz et al. (2020)
#--------------------------------------------------------
# Load the data
data(Dragonera)
# Parameters
Uxlim=c(-10,10)
Uylim=c(-10,10)
Uxlab<-"U (m/s)"
Uylab<-"V (m/s)"
plotmain<-"Dragonera U10/V10"
sfactor<-1
ref<-Dragonera[["ref"]]
mod<-Dragonera[["mod"]]
# Index
SailoR.Indices(ref,mod)
# Plot
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)
# }
Run the code above in your browser using DataLab