Error when trying to plot Taylor Diagram

Hi all,

I am currently trying to construct some Taylor Diagram plots in order to evaluate the performance of a model. I haven't done this before but, having followed instructions in the "openair" manual, I am still getting an error.

This is my script at the moment:

*library(openair)*
*library(RColorBrewer)*

*# Import data to be analysed #*
*nk_o3_sum<-import("O3_mod vs meas_15km.csv", file.type = "csv",sep = ",",*
*           header.at = 1,data.at = 2,date = "Times (UTC)",date.format = "%d/%m/%Y %H:%M")*
*#Remove date column & rows without modelled/measured data*
*nk_o3_sum <- nk_o3_sum[,-1]*
*nk_o3_sum <-nk_o3_sum[-c(481:601),]*
*colnames(nk_o3_sum)<-c("modelled","measured")*

*# Plot Taylor Diagram #*
*TaylorDiagram(nk_o3_sum, obs = "measured", mod = "modelled", group = NULL,*
*              type = "default", normalise = FALSE)*

When I try to plot it, I get this error:

"Error in if (type %in% dateTypes & type %in% names(x)) { : 
  argument is of length zero"

Just wondered if anybody could help me understand what is causing this error?

Thanks,
Amy

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