I have 5 data sets, each includes multiple scatter points. If I use the geom_path function in R, I could obtain 5 contours like the following graph shows. enter image description here

Those five contours are annotated outlines from 5 pathologists, what I want to do now is trying to use a single contour to represents these 5. Is there any method to achieve this?

  • $\begingroup$ What about averaging them? $\endgroup$ – nicoguaro Jul 6 at 16:10
  • $\begingroup$ The question is how to do the averaging? Since the numbers of points for each contour are not the same... $\endgroup$ – HAOYANG MI Jul 6 at 19:13
  • $\begingroup$ I thought about averaging the interception of each curve with the perpendicular bisectors. $\endgroup$ – Ertxiem Jul 7 at 12:41

Without knowing about the expected behavior of the data I would compute a interpolation over a common parameter space and then average the interpolated values

  • $\begingroup$ Thank you for your help! But to what values do you plan to perform averaging? Along which direction? $\endgroup$ – HAOYANG MI Jul 7 at 0:39
  • $\begingroup$ I don't know what you mean by direction, bit the average would depend on the parameterization that you have. Let's suppose that you can use polar coordinates and the angle as parameter then you have $r = r(\theta)$, and you can use that $\endgroup$ – nicoguaro Jul 7 at 1:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.