# Draw contour line to represent multiple contours

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.

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?

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

• 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 – nicoguaro Jul 7 '19 at 1:50