Also see theĭeprecated use hover instead. If multiple points in a given trace exist at the same coordinate, only one will get an entry in the hover label. Value brushing one image or plot will cause any other brushes with theĭeprecated use click instead. ImageOutput/ plotOutput calls may share the same id Value will be a named list with xmin, xmax, ymin, and Brushing means that the user willīe able to draw a rectangle in the plotting area and drag it around. Information about the brushed area to the server, and the value will beĪccessible via input$plot_brush. The plot will allow the user to "brush" in the plotting area, and will send "plot_brush" (or equivalently, brushOpts(id="plot_brush")), To control the hover time or hover delay type, you must useĭeprecated use hover instead. Named list with x and y elements indicating the mouse Clicking repeatedly only seems to change one coordinate: ui. I would like to get the coordinates of the click on the plot so users can do things with the map, but the coordinates are very strange (either NULL or something very small). Value will be accessible via input$plot_hover. I have the start of a shiny app with a ggplot map of the world. The plot will send coordinates to the server pauses on the plot, and the "plot_hover" (or equivalently, hoverOpts(id="plot_hover")), (the default), a string, or an object created by the Similar to the click argument, this can be NULL We register the plotclick input, and then use that to update an output with the coordinates of the. This is just like the click argument, but for Heres a very simple example of handling a mouse click. The value will beĪ named list with x and y elements indicating the mouse Each of the three mouse buttons, combined with keyboard modifier keys. The value will be accessible via input$plot_click. Render View uses data processing techniques to map raw data to graphics primitives. The plot will send coordinates to the server whenever it is clicked, and "plot_click" (or equivalently, clickOpts(id="plot_click")), This can be NULL (the default), a string, or an objectĬreated by the clickOpts function. "auto" or "100%" generally will not work as expected,īecause of how height is computed with HTML/CSS. Ignored when inline = TRUE, in which case the width/height of a plot ![]() ![]() "100%", "400px", "auto") or a number, which will beĬoerced to a string and have "px" appended. Output variable to read the plot/image from. Create an plot or image output element imageOutput ( outputId, width = "100%", height = "400px", click = NULL, dblclick = NULL, hover = NULL, hoverDelay = NULL, hoverDelayType = NULL, brush = NULL, clickId = NULL, hoverId = NULL, inline = FALSE ) plotOutput ( outputId, width = "100%", height = "400px", click = NULL, dblclick = NULL, hover = NULL, hoverDelay = NULL, hoverDelayType = NULL, brush = NULL, clickId = NULL, hoverId = NULL, inline = FALSE ) Arguments outputId
0 Comments
Leave a Reply. |