Skip to main content

shinyJackpot: Visualizing Lottery Gambling in a Large Canadian City

  • Conference paper
  • First Online:
HCI International 2022 Posters (HCII 2022)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1580))

Included in the following conference series:

  • 1758 Accesses

Abstract

Lottery gambling is widely enjoyed by Canadians and is the most popular form of legal gambling. As such, discovering and analyzing patterns in lottery gambling data is an important but nontrivial task. In this work, we describe the theory and development of this shiny web application. Three methods were presented to process and visualize it to the end user to allow for faster pattern discovery. Firstly, a bubble plot was utilized for the comparative analysis of lottery sales per each neighbourhood of the city of Toronto, Canada. Secondly, a scatter plot was used to explore the relationship between different neighbourhoods, lottery game product, year, lottery ticket sales, and demographic information. Lastly, a line graph was deployed to compare the jackpot size and ticket sales over time. shinyJackpot is deployed at https://andrewcli.shinyapps.io/shinyJackpot/ for online use.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Andrews, S., Ellis, D.A., Shaw, H., Piwek, L.: Beyond self-report: tools to compare estimated and real-world smartphone use. PLoS ONE 10(10), e0139004 (2015)

    Article  Google Scholar 

  2. Ariyabuddhiphongs, V.: Lottery gambling: a review. J. Gambl. Stud. 27(1), 15–33 (2011)

    Article  Google Scholar 

  3. Beckert, J., Lutter, M.: The inequality of fair play: lottery gambling and social stratification in Germany. Eur. Sociol. Rev. 25(4), 475–488 (2009)

    Article  Google Scholar 

  4. Chambers, J.M., Cleveland, W.S., Kleiner, B., Tukey, P.A.: Graphical Methods for Data Analysis. Chapman and Hall/CRC, London (2018)

    Book  MATH  Google Scholar 

  5. Chang, W., et al.: shiny: web Application Framework for R (2021). https://CRAN.R-project.org/package=shiny. R package version 1.6.0

  6. Chen, C.h., Härdle, W.K., Unwin, A.: Handbook of Data Visualization. Springer, Heidelberg (2007). https://doi.org/10.1007/978-3-540-33037-0

  7. Clotfelter, C.T., Cook, P.J.: Implicit taxation in lottery finance. Natl. Tax J. 40(4), 533–546 (1987)

    Article  Google Scholar 

  8. DePaolo, C.A.: The stat-attic website: links to statistics applets for introductory courses. J. Stat. Educ. 18(3) (2010)

    Google Scholar 

  9. Ellis, D.A., Renouf, K.J.: Predicting fear of crime: personality outperforms prior victimisation. J. Forensic Psychiatry Psychol. 29(3), 403–418 (2018)

    Article  Google Scholar 

  10. Fu, H.N., Monson, E., Otto, A.R.: Relationships between socio-economic status and lottery gambling across lottery types: neighborhood-level evidence from a large city. Addiction 116(5), 1256–1261 (2021)

    Article  Google Scholar 

  11. Graul, C.: leafletR: Interactive Web-Maps Based on the Leaflet JavaScript Library (2016). http://cran.r-project.org/package=leafletR. R package version 0.4-0

  12. Lane, D.M.: The rice virtual lab in statistics. Behav. Res. Methods Instrum. Comput. 31(1), 24–33 (1999)

    Article  Google Scholar 

  13. Lang, K.B., Omori, M.: Can demographic variables predict lottery and pari-mutuel losses? An empirical investigation. J. Gambl. Stud. 25(2), 171–183 (2009)

    Article  Google Scholar 

  14. Lim, V., Deahl, E., Rubel, L., Williams, S.: Local lotto (2015)

    Google Scholar 

  15. Livernois, J.R.: The redistributive effects of lotteries: evidence from Canada. Public Finance Q. 15(3), 339–351 (1987)

    Article  Google Scholar 

  16. Miyazaki, A.D., Hansen, A., Sprott, D.E.: A longitudinal analysis of income-based tax regressivity of state-sponsored lotteries. J. Public Policy Mark. 17(2), 161–172 (1998)

    Article  Google Scholar 

  17. Rubin, J., Dana, J.S.D.C.C.: Chisnell: Handbook of Usability Testing (2008)

    Google Scholar 

  18. Shaw, H., Ellis, D.A., Kendrick, L.R., Ziegler, F., Wiseman, R.: Predicting smartphone operating system from personality and individual differences. Cyberpsychol. Behav. Soc. Netw. 19(12), 727–732 (2016)

    Article  Google Scholar 

  19. Stark, P.B.: Sticigui: statistics tools for internet and classroom instruction with a graphic user interface (2004). http://stat-www.berkeley.edu/users/stark/SticiGui/index.htm

  20. R Core Team: R: A language and environment for statistical computing (2013)

    Google Scholar 

  21. Wickham, H.: ggplot2: Elegant Graphics for Data Analysis. Springer, New York (2016). https://ggplot2.tidyverse.org

  22. Xie, Y.: animation: an R package for creating animations and demonstrating statistical methods. J. Stat. Softw. 53, 1–27 (2013)

    Article  Google Scholar 

  23. Yu, Y., Ouyang, Y., Yao, W.: shinyCircos: an R/shiny application for interactive creation of Circos plot. Bioinformatics 34(7), 1229–1231 (2018)

    Article  Google Scholar 

  24. Yu, Y., Yao, W., Wang, Y., Huang, F.: shinychromosome: an R/shiny application for interactive creation of non-circular plots of whole genomes. Genom. Proteom. Bioinform. 17(5), 535–539 (2019)

    Article  Google Scholar 

Download references

Acknowledgement

Geocoding data used in the Map tab was made available by https://geocoder.ca.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Andrew Li .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Li, A. (2022). shinyJackpot: Visualizing Lottery Gambling in a Large Canadian City. In: Stephanidis, C., Antona, M., Ntoa, S. (eds) HCI International 2022 Posters. HCII 2022. Communications in Computer and Information Science, vol 1580. Springer, Cham. https://doi.org/10.1007/978-3-031-06417-3_32

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-06417-3_32

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-06416-6

  • Online ISBN: 978-3-031-06417-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics