Skip to content

Commit 85ca07c

Browse files
plotlyBook changed to plotly_book
1 parent d3ccfd1 commit 85ca07c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

linked-views-shiny.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ library(shiny)
674674
library(dplyr)
675675
library(purrr) # just for `%||%`
676676
677-
data(sales, package = "plotlyBook")
677+
data(sales, package = "plotly_book")
678678
categories <- unique(sales$category)
679679
680680
ui <- fluidPage(plotlyOutput("pie"), uiOutput("back"))
@@ -731,7 +731,7 @@ A basic drill-down like Figure \@ref(fig:shiny-drill-down-pie) is somewhat usefu
731731
library(shiny)
732732
library(dplyr)
733733
734-
data(sales, package = "plotlyBook")
734+
data(sales, package = "plotly_book")
735735
categories <- unique(sales$category)
736736
737737
ui <- fluidPage(
@@ -809,7 +809,7 @@ library(shiny)
809809
library(plotly)
810810
library(dplyr)
811811
812-
data(sales, package = "plotlyBook")
812+
data(sales, package = "plotly_book")
813813
categories <- unique(sales$category)
814814
sub_categories <- unique(sales$sub_category)
815815
ids <- unique(sales$id)
@@ -976,7 +976,7 @@ library(shiny)
976976
library(plotly)
977977
library(dplyr)
978978
979-
data(sales, package = "plotlyBook")
979+
data(sales, package = "plotly_book")
980980
981981
ui <- fluidPage(
982982
plotlyOutput("category", height = 200),
@@ -1255,4 +1255,4 @@ Sometimes **shiny** gets a bad rap for being too slow or unresponsive, but as we
12551255

12561256
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!.
12571257

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

Comments
 (0)