(Sorry I dont have much experience with this platform so I don't know how to upload my question in the appropriate format)
In my facet grid plot I want to visualize correlations. However, this data comes from a seperate data file. It is not possible to merge this files I think.
Datafile 1 looks like this (Only a few rows shown)
I want to visualize the relation between PA and MT and FL and MT for the different groups, conditions and muscles. I added the graph as an example
Now I want to add the correlations to the graph. So I calculated the correlations for the different conditions like this:
corsFLMT <- ddply(data1, c("Group", "Muscle","RestCon"), summarise, cor = round(cor(FL,MW), 2))
corsPAMT <- ddply(data1, c("Group", "Muscle","RestCon"), summarise, cor = round(cor(PA,MW), 2))
question from:
https://stackoverflow.com/questions/66049264/overlap-in-text-ggplot 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…