dmurdoch / plotrix

Various Plotting Functions
https://plotrix.github.io/plotrix/
1 stars 0 forks source link

Combined Taylor diagrams #1

Open jcborgesjr opened 5 months ago

jcborgesjr commented 5 months ago

1) Is it possible to combine 5 Taylor diagrams in the same figure with plotrix? 2) How to save this combined figure or even just a Taylar diagram as a high-resolution jpg file?

dmurdoch commented 5 months ago

Show me how you create one, and I'll try to show you how to create 5.

jcborgesjr commented 5 months ago

https://www.rdocumentation.org/packages/plotrix/versions/3.8-4/topics/taylor.diagram remove(list=ls()) library(plotrix) library(ggplot2)

setwd("C:/Users/CLIENTE/Documents/Artigos/2020-ET0-Artigo1/Figuras/DiagramaTaylor")

D=read.table("USF1.txt",head=TRUE) data <- data.frame(D) diagrama1<-taylor.diagram(data$FPM,data$HS, col="red", pcex=1.1, ref.sd=TRUE, main="USF1", sd.arcs=TRUE)

taylor.diagram(data$FPM, data$HSb,add=TRUE,col="blue", pcex=1.1) taylor.diagram(data$FPM, data$EMT,add=TRUE,col="green", pcex=1.1) taylor.diagram(data$FPM, data$EMTC,add=TRUE, col="brown", pcex=1.1) taylor.diagram(data$FPM, data$ FPMea_T,add=TRUE, col="black", pcex=1.1)

taylor.diagram(data$FPM, data$ EMTRH,add=TRUE,pch=17,col="blue", pcex=1.1) taylor.diagram(data$FPM, data$ EMTRHC,add=TRUE,pch=17,col="green", pcex=1.1) taylor.diagram(data$FPM, data$ FPMea_TRH,add=TRUE,pch=17,col="brown", pcex=1.1)

taylor.diagram(data$FPM, data$ DLT,add=TRUE,pch=10,col="blue", pcex=1.1) taylor.diagram(data$FPM, data$ DLTC,add=TRUE,pch=10,col="green", pcex=1.1)

taylor.diagram(data$FPM, data$ DLTRH,add=TRUE,pch=8,col="blue", pcex=1.1) g1 <- taylor.diagram(data$FPM, data$ DLTRHC,add=TRUE,pch=8,col="green", pcex=1.1) USF1.txt

jcborgesjr commented 5 months ago

I'm using R 4.3.3

dmurdoch commented 5 months ago

I don't have your data, but I can get 6 using

par(mfrow=c(2,3))
example(taylor.diagram)
example(taylor.diagram)
example(taylor.diagram)

(3 repeats of each of the two from the example). Is that the sort of thing you want?

jcborgesjr commented 5 months ago

Firstly, I would like to thank you for your attention and help. The data was attached to the message above (USF1.txt). I will try to understand the procedure used.