Taylor graph in Rstudio

Hello everyone,
I'm trying to draw a Taylor graph as in the attached screenshot I shared below. However, Rstudio gives the Error "Error in is.data.frame(y) : 'Aydin_hist_Pr45.csv' object not found". My code is as below. I don't know what's missing in my code. Plus, if you could just tell me how I can draw Taylor's graph for multiple GCM results.

setwd('C:/Users/Asus/Documents/ArcGIS/ArcGIS - Copy/evaporation/Downscaling Files')

getwd()

ls()

rm(list=ls())

install.packages(c("plotrix"))

library(plotrix)

taylor.diagram(aydin_mgm_temp_mon.csv, Aydin_hist_Pr45.csv)

Hello @ibrakadabra,
type

?taylor.diagram

to see what arguments the taylor.diagram function expects.
According to this the arguments you specify should be numerical vectors.
The names you use suggest that you pass here the names of two csv files.
They can not be read by the taylor.diagram function.

I think you should first read the contents of the csv files into an R 'thing' : a data.frame.
See for some starters in this field https://education.rstudio.com/learn/beginner/

1 Like

Thank you so much for the reply.
Best regards

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.