Data Science in a Box
Cornell College
DSC 223 - Fall 2022
October 17th, 2022
Every Shiny app has a webpage that the user visits, and behind this webpage there is a computer that serves this webpage by running R
When running your app locally, the computer serving your app is your computer
When your app is deployed, the computer serving your app is a web server
ggiraph is a tool that allows you to create dynamic ggplot graphs. This allows you to add tooltips, hover effects and JavaScript actions to the graphics. The package also allows the selection of graphical elements when used in shiny applications.
Interactivity is added to ggplot geometries, legends and theme elements, via the following aesthetics:
The allbacks
data frame gives measurements on the volume and weight of 15 books, some of which are paperback and some of which are hardback
# A tibble: 15 × 4
volume area weight cover
<dbl> <dbl> <dbl> <fct>
1 885 382 800 hb
2 1016 468 950 hb
3 1125 387 1050 hb
4 239 371 350 hb
5 701 371 750 hb
6 641 367 600 hb
7 1228 396 1075 hb
8 412 0 250 pb
9 953 0 700 pb
10 929 0 650 pb
11 1492 0 975 pb
12 419 0 350 pb
13 1010 0 950 pb
14 595 0 425 pb
15 1034 0 725 pb