Hi mehdi,
Try this (first example in the help page):
ref<-rnorm(30,sd=2)
# add a little noise
model1<-ref+rnorm(30)/2
# add more noise
model2<-ref+rnorm(30)
# display the diagram with the better model
oldpar<-taylor.diagram(ref,model1)
# now add the worse model
taylor.diagram(ref,model2,add=TRUE,col="blue")
# get approximate legend position
lpos<-1.5*sd(ref)
# add a legend
legend(lpos,lpos,legend=c("Better","Worse"),pch=19,col=c("red","blue"))
# now restore par values
par(oldpar)
What you have done is to leave out the "reference" model (ref), so
that the second argument is missing.
Jim
On Wed, Dec 1, 2021 at 7:29 PM mehdi ghasemi <ghasemimehdi61 at gmail.com>
wrote:>
> Hi Dr
>
> If we want to draw two plots only in a Taylor diagram ,What the attached
code should be modified ?
> thanks