Home > database >  Highlight specific paired data in ggpaired plot
Highlight specific paired data in ggpaired plot

Time:12-03

I am comparing paired samples across two timepoints. I would like to highlight a specific sample by changing the color of the points and line to red in order to show how certain samples increase over time. The data, df, consists of 10 samples with two timepoints and I want to highlight point D because it has a large increase.

ID Time1 Time2
A 0.296 0.083
B 0.184 0.300
C 0.523 0.703
D 0.301 1.458
E 1.089 0.511
F 0.016 0.313
G 1.502 1.701
H 0.101 0.727
I 0.290 0.212
J 0.719 0.921

I generated a paired box plot using the ggpaired() function. enter image description here

  • Related