My data is a csv file as follows which has been read to a value called var_x_degs:
This goes on for 500+ more rows. I need to visually inspect how well the three replicates "VarXCRep.1", "VarXCRep.2" and "VarXCRep.3" agree/correlate with each other using scatterplots.
My thought process was to calculate correlation between Rep.1 and Rep.2 because I am unable to use cor()
for more than two variables. But when I run cor(var_x_degs$VarXCRep.1, var_x_degs$VarXCRep.2)
I get back one value. How can I work out correlation between each of the rows, so that each row has its own correlation value? I suppose once I have that value I can at least make a scatterplot. Is there a way to draw correlation between all triplicates?