You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -731,7 +731,7 @@ A basic drill-down like Figure \@ref(fig:shiny-drill-down-pie) is somewhat usefu
731
731
library(shiny)
732
732
library(dplyr)
733
733
734
-
data(sales, package = "plotlyBook")
734
+
data(sales, package = "plotly_book")
735
735
categories <- unique(sales$category)
736
736
737
737
ui <- fluidPage(
@@ -809,7 +809,7 @@ library(shiny)
809
809
library(plotly)
810
810
library(dplyr)
811
811
812
-
data(sales, package = "plotlyBook")
812
+
data(sales, package = "plotly_book")
813
813
categories <- unique(sales$category)
814
814
sub_categories <- unique(sales$sub_category)
815
815
ids <- unique(sales$id)
@@ -976,7 +976,7 @@ library(shiny)
976
976
library(plotly)
977
977
library(dplyr)
978
978
979
-
data(sales, package = "plotlyBook")
979
+
data(sales, package = "plotly_book")
980
980
981
981
ui <- fluidPage(
982
982
plotlyOutput("category", height = 200),
@@ -1255,4 +1255,4 @@ Sometimes **shiny** gets a bad rap for being too slow or unresponsive, but as we
1255
1255
1256
1256
Maybe your IT administrator simply won't allow you to distribute your work outside of a standalone HTML file. Figure \@ref(fig:shiny-corrplot) is just one example of a linked graphic that *could* be replicated using the graphical querying framework from Section \@ref(graphical-queries), but it would require pre-computing every possible view (which becomes un-manageable when there are many possible selections) and posing the update logic as a database query. When users are only allowed to select (e.g. click/hover) a single element at a time, the number of possible selections increases linearly with the number of elements, but when users are allowed to select any subset of elements (e.g., scatterplot brushing), the number of possible selection explodes (increases at a factorial rate). For example, adding a cell to Figure \@ref(fig:shiny-corrplot) only adds one possible selection, but if we added more states to Figure \@ref(fig:shiny-corrplot), the number of possible states goes from 50! to 51!.
1257
1257
1258
-
Even in the case that you need a standalone HTML file and the R API that **plotly** provides doesn't support the type of interactivity that you desire, you can always layer on additional JavaScript to hopefully achieve the functionality you desire. This can be useful for something as simple as opening a hyperlink when clicking on marker of a plotly graph -- this topic is covered introduced in Chapter \@ref(javascript).
1258
+
Even in the case that you need a standalone HTML file and the R API that **plotly** provides doesn't support the type of interactivity that you desire, you can always layer on additional JavaScript to hopefully achieve the functionality you desire. This can be useful for something as simple as opening a hyperlink when clicking on marker of a plotly graph -- this topic is covered introduced in Chapter \@ref(javascript).
0 commit comments