Clicking on an X-Y plane (e.g. plot, image) in a survey #111
Replies: 3 comments
-
Very cool, and yes that could definitely be done. But I'm not sure if this would be something to support in What could be done is you could set this up where in your output$map <- renderPlot({ something here }) # Or some other render function Then in your Then if there are some things that get captured in the server like the position they clicked, you could store those values to the data using Haven't tried it but that's a starting point if you want to give it a shot. |
Beta Was this translation helpful? Give feedback.
-
Hi @rgmerck , I leave a comment here so this discussion appears on my notification box. This is a great idea. I'll put it on my list and work on it in the near future. |
Beta Was this translation helpful? Give feedback.
-
Hi @rgmerck , here is the solution: we have a new function called This demo is a showcase of the leaflet map question utilizing the The map question looks like this: This demo is a showcase of the plotly X-Y plane question utilizing the The demo codes have package installation codes prepared on the top of the |
Beta Was this translation helpful? Give feedback.
-
Description
Hi again, one of the thing that is probably possible thanks to Shiny would be to support questions where the answer is not really a regular user input as text or a radio button, but a position on a picture or a selection on a picture. There are many psychological tests where respondents are asked to put "where are you on this map" or "there are two X and Y axes for these dimensions, where would you put yourself in there?". Shiny has reactive elements that can handle the detection of a single click on a picture or even a selection on a picture, and would return coordinates or a range of coordinates for the data.
Probably not a super common use case, but that's something most survey systems do not offer, and something I would definitely use myself.
Beta Was this translation helpful? Give feedback.
All reactions