@@ -6,10 +6,10 @@ ui <- fluidPage(
6
6
plotlyOutput(" plot" ),
7
7
verbatimTextOutput(" hover" ),
8
8
verbatimTextOutput(" click" ),
9
- verbatimTextOutput(" selected " ),
9
+ verbatimTextOutput(" brushing " ),
10
10
verbatimTextOutput(" selecting" ),
11
11
verbatimTextOutput(" brushed" ),
12
- verbatimTextOutput(" brushing " )
12
+ verbatimTextOutput(" selected " )
13
13
)
14
14
15
15
server <- function (input , output , session ) {
@@ -37,24 +37,24 @@ server <- function(input, output, session) {
37
37
if (is.null(d )) " Click events appear here (double-click to clear)" else d
38
38
})
39
39
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
43
43
})
44
44
45
45
output $ selecting <- renderPrint({
46
46
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
48
48
})
49
49
50
50
output $ brushed <- renderPrint({
51
51
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
53
53
})
54
54
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
58
58
})
59
59
60
60
}
0 commit comments