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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
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)
Ariyabuddhiphongs, V.: Lottery gambling: a review. J. Gambl. Stud. 27(1), 15–33 (2011)
Beckert, J., Lutter, M.: The inequality of fair play: lottery gambling and social stratification in Germany. Eur. Sociol. Rev. 25(4), 475–488 (2009)
Chambers, J.M., Cleveland, W.S., Kleiner, B., Tukey, P.A.: Graphical Methods for Data Analysis. Chapman and Hall/CRC, London (2018)
Chang, W., et al.: shiny: web Application Framework for R (2021). https://CRAN.R-project.org/package=shiny. R package version 1.6.0
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
Clotfelter, C.T., Cook, P.J.: Implicit taxation in lottery finance. Natl. Tax J. 40(4), 533–546 (1987)
DePaolo, C.A.: The stat-attic website: links to statistics applets for introductory courses. J. Stat. Educ. 18(3) (2010)
Ellis, D.A., Renouf, K.J.: Predicting fear of crime: personality outperforms prior victimisation. J. Forensic Psychiatry Psychol. 29(3), 403–418 (2018)
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)
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
Lane, D.M.: The rice virtual lab in statistics. Behav. Res. Methods Instrum. Comput. 31(1), 24–33 (1999)
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)
Lim, V., Deahl, E., Rubel, L., Williams, S.: Local lotto (2015)
Livernois, J.R.: The redistributive effects of lotteries: evidence from Canada. Public Finance Q. 15(3), 339–351 (1987)
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)
Rubin, J., Dana, J.S.D.C.C.: Chisnell: Handbook of Usability Testing (2008)
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)
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
R Core Team: R: A language and environment for statistical computing (2013)
Wickham, H.: ggplot2: Elegant Graphics for Data Analysis. Springer, New York (2016). https://ggplot2.tidyverse.org
Xie, Y.: animation: an R package for creating animations and demonstrating statistical methods. J. Stat. Softw. 53, 1–27 (2013)
Yu, Y., Ouyang, Y., Yao, W.: shinyCircos: an R/shiny application for interactive creation of Circos plot. Bioinformatics 34(7), 1229–1231 (2018)
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)
Acknowledgement
Geocoding data used in the Map tab was made available by https://geocoder.ca.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
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)