@@ -6,10 +6,10 @@ ui <- fluidPage(
66 plotlyOutput(" plot" ),
77 verbatimTextOutput(" hover" ),
88 verbatimTextOutput(" click" ),
9- verbatimTextOutput(" selected " ),
9+ verbatimTextOutput(" brushing " ),
1010 verbatimTextOutput(" selecting" ),
1111 verbatimTextOutput(" brushed" ),
12- verbatimTextOutput(" brushing " )
12+ verbatimTextOutput(" selected " )
1313)
1414
1515server <- function (input , output , session ) {
@@ -37,24 +37,24 @@ server <- function(input, output, session) {
3737 if (is.null(d )) " Click events appear here (double-click to clear)" else d
3838 })
3939
40- output $ selected <- renderPrint({
41- d <- event_data(" plotly_selected " )
42- if (is.null(d )) " Click and drag events (i.e., select/lasso) appear here (double-click to clear)" else d
40+ output $ brushing <- renderPrint({
41+ d <- event_data(" plotly_brushing " )
42+ if (is.null(d )) " Brush extents appear here (double-click to clear)" else d
4343 })
4444
4545 output $ selecting <- renderPrint({
4646 d <- event_data(" plotly_selecting" )
47- if (is.null(d )) " Click and drag events (i.e., select/lasso) appear here (double-click to clear)" else d
47+ if (is.null(d )) " Brush points appear here (double-click to clear)" else d
4848 })
4949
5050 output $ brushed <- renderPrint({
5151 d <- event_data(" plotly_brushed" )
52- if (is.null(d )) " Extents of the selection brush will appear here. " else d
52+ if (is.null(d )) " Brush extents appear here (double-click to clear) " else d
5353 })
5454
55- output $ brushing <- renderPrint({
56- d <- event_data(" plotly_brushing " )
57- if (is.null(d )) " Extents of the selection brush will appear here. " else d
55+ output $ selected <- renderPrint({
56+ d <- event_data(" plotly_selected " )
57+ if (is.null(d )) " Brushed points appear here (double-click to clear) " else d
5858 })
5959
6060}
0 commit comments