1

I am stuck at this point. Let me elaborate in detail the situation and the problem I am facing.

I created a function, named crown_height_recons_2d() and it is stored in GitHub.

This function aims at reconstructing the outline of enamel in different human teeth.

This is an example of how the function is used (image can be downloaded here):

crown_height_recons_2d("images/molar2.jpg", tooth_type = "LM", interval = "prediction", save_svg = "yes")

Generally, what this function does is two locate, with a two-step process, two blue points (first the one on the left, and second the one on the right) as seen in next picture:

enter image description here

After clicking on the second blue point, it automatically zooms to the area comprised between the two points and draw a regression equation. Just for clarity, the blue dot on the left is the coordinate 0,0 and the right one is the coordinate 100,0 in the next image.

enter image description here

I think that the overall function is explained.

Now my questions

  1. How can I get the regression equation plotted on the full image rather than zooming inside. Ideally, the ggplot should be seen in the molar represented in the first image.
  2. The prediction interval, as seen in the second image, is not completed. How can I solve this?
antecessor
  • 2,688
  • 6
  • 29
  • 61
  • 3
    It seems that to answer your question, one would have to install your package and rewrite one or more of the functions to change the high-level behaviour of your package. This seems like an overly broad and ambitious goal for a Stack Overflow question. Perhaps it would be better to give an example of the output of your regression function and a png file? – Allan Cameron Mar 14 '23 at 11:04

0 Answers0