I am trying to plot taylor diagram
for each data.frame
(i.e., Precipitation, Max_Temp, and Min_temp)
on same figure
. Each data.frame
have a ref observation
and model outputs
represented by (A1,G2, and G3)
. Any help would be appreciated.
library(tidyverse)
library(plotrix)
set.seed(123)
precipitation <- data.frame(Ref = runif(730,1,5), A1 = runif(730,0,8), G2 = runif(730,2,6), G3 = runif(730,1,7))
Max_Temp <- data.frame(Ref = runif(730,-5,30), A1 = runif(730,-8,32), G2 = runif(730,-2,28), G3 = runif(730,-10,25))
Min_Temp <- data.frame(Ref = runif(730,-20,5), A1 = runif(730,-25,10), G2 = runif(730,-25,6), G3 = runif(730,-15,10))
I tried the code to just draw the diagram for precipitation but am getting error.
precipitation %>%
pivot_longer(names_to = "Models", values_to = "values", -Ref) %>%
taylor.diagram(Ref, values, col = Models)