@@ -872,10 +872,16 @@ imageOutput <- function(outputId, width = "100%", height="400px",
872
872
# ' \code{brush}.
873
873
# '
874
874
# ' For \code{plotOutput}, the coordinates will be sent scaled to the data
875
- # ' space, if possible. (At the moment, plots generated by base graphics
876
- # ' support this scaling, although plots generated by grid or ggplot2 do not.)
877
- # ' If scaling is not possible, the raw pixel coordinates will be sent. For
878
- # ' \code{imageOutput}, the coordinates will be sent in raw pixel coordinates.
875
+ # ' space, if possible. (At the moment, plots generated by base graphics and
876
+ # ' ggplot2 support this scaling, although plots generated by lattice and
877
+ # ' others do not.) If scaling is not possible, the raw pixel coordinates will
878
+ # ' be sent. For \code{imageOutput}, the coordinates will be sent in raw pixel
879
+ # ' coordinates.
880
+ # '
881
+ # ' With ggplot2 graphics, the code in \code{renderPlot} should return a ggplot
882
+ # ' object; if instead the code prints the ggplot2 object with something like
883
+ # ' \code{print(p)}, then the coordinates for interactive graphics will not be
884
+ # ' properly scaled to the data space.
879
885
# '
880
886
# ' @param outputId output variable to read the plot/image from.
881
887
# ' @param width,height Image width/height. Must be a valid CSS unit (like
@@ -889,8 +895,8 @@ imageOutput <- function(outputId, width = "100%", height="400px",
889
895
# ' created by the \code{\link{clickOpts}} function. If you use a value like
890
896
# ' \code{"plot_click"} (or equivalently, \code{clickOpts(id="plot_click")}),
891
897
# ' the plot will send coordinates to the server whenever it is clicked, and
892
- # ' the value will be accessible via \code{input$plot_click}. The value will
893
- # ' be a named list with \code{x} and \code{y} elements indicating the mouse
898
+ # ' the value will be accessible via \code{input$plot_click}. The value will be
899
+ # ' a named list with \code{x} and \code{y} elements indicating the mouse
894
900
# ' position.
895
901
# ' @param dblclick This is just like the \code{click} argument, but for
896
902
# ' double-click events.
0 commit comments