Shiny 기초학습을 위한 강의 슬라이드와 실습파일입니다. 본 내용은 “서울IT직업전문학교 빅데이터 사이언스 실무자 양성과정” 에서 쓰일 예정입니다.
김진섭 대표는 11월 14일 서울IT직업전문학교 빅데이터 사이언스 실무자 양성과정 에 강사로 초청, Shiny 기초학습을 위한 워크샵을 진행할 계획입니다. 강의 슬라이드를 포함한 실습 자료를 미리 공유합니다. daattalli 의 NBA 2018/2019 선수 스탯 데이터를 이용한 워크샵 을 그대로 활용했습니다.
RStudio cloud 를 이용, 클라우드 환경에서 R을 쓸 수 있다.
app.R
파일에 Shiny의 ui와 server 코드를 입력할 수 있다.
fluidPage
의 sidebarLayout
레이아웃을 이용, 왼쪽에는 UI 옵션, 오른쪽에는 해당되는 결과를 보여줄 수 있다.
Reactivity 를 이해한다.
shinyapps.io 에 app 을 배포할 수 있다.
Step 1: https://rstudio.cloud 회원 가입
Step 2: https://rstudio.cloud/spaces/30306/join?access_code=s4hEiPXQF%2BjosPclQEzgTtR0mPWDuh7Dhr2O7wAg 들어가서 “Join Space” 클릭
Step 3: 위쪽 “Projects” 클릭 후, “New Project” 를 눌러 “New Project from Git Repo” 선택. Repo 주소는 https://github.com/jinseob2kim/shiny-workshop-odsc2019.
모든 강의자료는 RStudio cloud 안에 있다.
Step 1: 패키지 설치
install.packages(c("shiny", "ggplot2", "dplyr", "DT", "colourpicker", "readr"))
Step 2: https://github.com/jinseob2kim/shiny-workshop-odsc2019 들어간 후
Step 3: 녹색 “Clone or download” 클릭 후 “Download ZIP” 을 눌러 자료 다운.
아래 슬라이드를 보거나 https://jinseob2kim.github.io/shiny-workshop-odsc2019 를 클릭하면 볼 수 있고, 전체 워크숍 자료는 https://github.com/jinseob2kim/shiny-workshop-odsc2019 에서 다운받을 수 있다.
If you see mistakes or want to suggest changes, please create an issue on the source repository.
Text and figures are licensed under Creative Commons Attribution CC BY 4.0. Source code is available at https://github.com/zarathucorp/blog, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Kim (2019, Oct. 27). Zarathu Blog: Shiny 워크샵: 서울IT직업전문학교 국비교육. Retrieved from https://blog.zarathu.com/posts/2019-10-26-shinyworkshop2019/
BibTeX citation
@misc{kim2019shiny, author = {Kim, Jinseob}, title = {Zarathu Blog: Shiny 워크샵: 서울IT직업전문학교 국비교육}, url = {https://blog.zarathu.com/posts/2019-10-26-shinyworkshop2019/}, year = {2019} }