-1

I have a data set comprising of measurements of 2 analytes in multiple samples at baseline, 6 months and 12 months, with the measurements in log form. I am pretty new to R and can't seem to get anything to show a correlation matrix or scatter plot to work. Any help would be great.

I've assigned the timepoints as Baseline = 1, 6 Months = 2, 12 Months = 3. The columns are "Sample ID", "Sample Type" (I have two different human samples from the airways), "Analyte" "Timepoint" and "Log10 Amount".

Any help much appreciated!

I've tried using chatgpt to generate the code and its not exactly helpful..

jpsmith
  • 11,023
  • 5
  • 15
  • 36
Sam Nolan
  • 9
  • 4
  • Hi Sam, for better, faster help please take a look at [How to make a great R reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) and [How do I ask a good quesiton?](https://stackoverflow.com/help/how-to-ask) and edit your question according to those tips. Good luck! – jpsmith Aug 22 '23 at 13:55
  • In addition to jpsmith's hint: which groups do you want to correlate? Sample types, analytes, timepoints? two-way? – I_O Aug 22 '23 at 14:04
  • Hi i_O, I want to correlate the amount of sample (log) in each. I can see from charts I can make in prism and etc that there is a trend of both decreasing (its an enzyme known to breakdown tissue compared with a marker of inflammation). – Sam Nolan Aug 22 '23 at 15:23

0 Answers0