Hello everyone,
I'm trying to create a Taylor diagram using plotrix package in Rstudio.
I've let the program read my data file and then tried to create the diagram using taylor.diagram() code.
However, it gives the "Error in [.data.frame
(pr, , 2) : undefined columns selected" error. Could you please help me solve this problem?
Below is my code.
setwd('C:/Users/Asus/Documents/ArcGIS/ArcGIS - Copy/evaporation/Downscaling Files')
getwd()
ls()
rm(list=ls())
install.packages(c("qmap", "zoo", "latticeExtra"))
install.packages(c("plotrix"))
library(plotrix)
library(qmap)
library(zoo)
library(latticeExtra)
temp <- read.csv(file="aydin_mgm_temp_mon.csv", header = FALSE)
pr <- read.csv(file="Aydin_hist_Pr45.csv", header = FALSE)
taylor.diagram(temp[,2],pr[,2])
Thanks in advance