0

I would like to visualize my data with the use of ggpaired. This function adds a line between paired data. However, I would like to change the color of the line based on a condition. I have the following graph and the color of the lines should be different based on a factor in the df. Could someone point me in the right direction?

All help is appreciated. enter image description here

ghs101
  • 103
  • 6

1 Answers1

0

add line.color="my_factor" to your ggpaired arguments. see ?ggpaired

robc
  • 11
  • 2