in fact what I want is the command polygon of base R graphics to be done for plotly interactively along with the feature I describe in the figures check ATTACHMENTS .
have in mind the polygon command in static plots of Rshiny.
this is for finding the x y coords
[login to view URL]
this has to be done for each subplotand this should not be done when the user doesntselect the option of applying one subplot's data points to all the subplotswhen the user wants to select the data points for each plot separately, then he will be selecting with the mouse the raw data pointsof the original dataalso this will be very useful for you
[login to view URL]:354#/
the way these lines get bigger or smaller and the way they rotate is niceI am talking about the red linesI would like them though to be much thinerso in the case of this automatic multiple applying of one subplots edges selection to all subplots, it will be needed to convert the raw data values into "pixel" values and then apply the same pixel values in the rest of the subplots and then convert the pixel values back into raw data values for each sybplot separately and for each subcurve in each subplot separatelyI hope you didnt get confusedSomething that will trouble you while doing that is that plotly arranges the suplots in a strange way. Usually it gives more space to the first and the last subplotsYou will have to override this and make all subplots of equal hightWithout ofcourse losing the synamic nature of plotly. I mean that the user must be able to adjust each subplots height as he wishes for any arbitrary number of subplots with a for loop, but each subplot must have the same proportion of height with rest. Otherwise the xy coordinates selected from one subplot will not be the same with rest of the plotsOn the other hand now that I am thinkibg about itLookWhen the vertical line of plotly that connects the data points of the subplots appearsThen you can see the data values of the subplot right belowOn the mouseSo something else you can do is to go to the raw code and make a modification to get the correaponding data points for all the subplots below that are connected with this vertical line