class: center, middle, inverse, title-slide # Nächste Schritte ### Explorative Datenanalyse mit R
The R Bootcamp
@
CSS
### Dezember 2019 --- layout: true <div class="my-footer"> <span style="text-align:center"> <span> <img src="https://raw.githubusercontent.com/therbootcamp/therbootcamp.github.io/master/_sessions/_image/by-sa.png" height=14 style="vertical-align: middle"/> </span> <a href="https://therbootcamp.github.io/"> <span style="padding-left:82px"> <font color="#7E7E7E"> www.therbootcamp.com </font> </span> </a> <a href="https://therbootcamp.github.io/"> <font color="#7E7E7E"> Explorative Datenanalyse mit R @ CSS | Dezember 2019 </font> </a> </span> </div> --- .pull-left45[ <br><br><br><br><br> # Hallo Tidyverse Experten Nach zwei Tagen kennt ihr nun die Grundlagen von R und des Tidyverse! ] .pull-right4[ <img src="image/schedule.png" height="580" align="center"> ] --- .pull-left2[ # "Tidyverse" kann noch mehr ] .pull-right75[ <p align = "center"> <br><br> <img src="image/hexwall.png" height=480px></img><br> <font style="font-size:10px">from <a href="https://www.mitchelloharawild.com/blog/hexwall/">mitchelloharawild.com</a></font> </p> ] --- # `ggrepel` .pull-left45[ ```r library(ggrepel) # Lade Tourismus Daten tour <- read_csv('1_Data/Tourismus.csv') europa <- read_csv('1_Data/Europa.csv') # Verbinde Nächte mit Äquivalenzeinkommen tour %>% mutate(Nächte = Besucher * Dauer) %>% left_join(europa) %>% ggplot(aes(x = Äquivalenzeinkommen, y = Nächte, label = Land)) + scale_y_continuous(trans = 'log2') + geom_point() + geom_label_repel(size = 2) + theme_bw() ``` ] .pull-right45[ ![](NextSteps_files/figure-html/unnamed-chunk-2-1.png)<!-- --> ] --- # Textanalyse .pull-left5[ ```r library(tidytext) library(wordcloud) # Wörter zählen counts <- read_html(".../R_(programming_language)") %>% html_text() %>% tibble() %>% unnest_tokens(w, ".") %>% filter(!str_detect(w, '[:digit:]')) %>% anti_join(stop_words) %>% count(word, sort = TRUE) %>% top_n(100) # Wortwolke wordcloud(counts$word, counts$n) ``` ] .pull-right4[ ![](NextSteps_files/figure-html/unnamed-chunk-4-1.png)<!-- --> ] --- # Statistik .pull-left45[ ```r library(tidyverse) # Lade Tourismus Daten tour <- read_csv('1_Data/Tourismus.csv') länd <- read_csv('1_Data/Länder.csv') # verbinde Daten data <- tour %>% inner_join(länd) %>% mutate(Nächte = Besucher * Dauer) # Regressionsanalyse model = lm(Nächte ~ Bevölkerung + Dichte + BIP, data = data) ``` ] .pull-right45[ ```r # Bestimmtheitsmass summary(model)$r.squared ``` ``` ## [1] 0.05719 ``` ```r # Koeffizienten summary(model)$coef[,-2] ``` ``` ## Estimate t value Pr(>|t|) ## (Intercept) 1.213e+01 0.01294 0.9897 ## Bevölkerung 2.379e-06 1.36594 0.1775 ## Dichte -3.381e-01 -0.82598 0.4124 ## BIP 2.988e+01 1.50779 0.1373 ``` ] --- .pull-left45[ # Maschinelles lernen ```r library(tidyverse) ; library(rpart) # Lade Tourismus Daten tour <- read_csv('1_Data/Tourismus.csv') länd <- read_csv('1_Data/Länder.csv') # verbinde Daten data <- tour %>% inner_join(länd) %>% mutate(Nächte = Besucher * Dauer) # Regressionsanalyse rpart( formula = Besucher ~ Bevölkerung + Dichte + BIP, data = data) ``` ] .pull-right45[ <br><br> ![](NextSteps_files/figure-html/unnamed-chunk-10-1.png)<!-- --> ] --- .pull-left45[ # `rmarkdown` <p align="left"><img style="height:440px" src="image/markdown.png"></p> ] .pull-right5[ <br><br> <p align="center"><img style="height:510px;box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);" src="image/markdown2.png"></p> ] --- <iframe width="1000" height="600" src="https://shiny.rstudio.com/gallery/movie-explorer.html" frameborder="0" allowfullscreen></iframe> --- # Nächste Schritte .pull-left5[ <font size = 4><i> <font size = 6> 1. Anwenden<br> 2. Bücher<br> 3. Webseiten<br> 4. Hilfe & Consulting<br> 5. Weiterführende Kurse<br> ] </font> <br> .pull-right5[ <p align="center"><img border="0" alt="W3Schools" src="http://www.theunmanageableemployee.com/wp-content/uploads/2011/07/5cs-stones-cropped-11052730.jpg?w=112"></p> ] --- # Bücher Hier ist eine unvollständige Liste guter Bücher über R lose geordnet nach vorausgesetzter Erfahrung.<br><br> <table width="80%" style="cellspacing:0; cellpadding:0; border:none;"> <tr> <td> <a href="http://r4ds.had.co.nz/"><img border="0" alt="W3Schools" src="http://r4ds.had.co.nz/cover.png" height="180"></a> </td> <td> <a href="https://covers.oreillystatic.com/images/0636920028574/cat.gif"><img border="0" alt="W3Schools" src="https://covers.oreillystatic.com/images/0636920028574/cat.gif" height="180"></a> </td> <td> <a href="http://r4ds.had.co.nz/"><img border="0" alt="W3Schools" src="http://r4ds.had.co.nz/cover.png" height="180"></a> </td> <td> <a href="https://www.springer.com/de/book/9783540799979"><img border="0" alt="W3Schools" src="https://images.springer.com/sgw/books/medium/9783540799979.jpg" height="180" ></a> </td> <td> <a href="https://bookdown.org/ndphillips/YaRrr/"><img border="0" alt="W3Schools" src="https://bookdown.org/ndphillips/YaRrr/images/YaRrr_Cover.jpg" height="180" ></a> </td> <td> <a href="https://www.orellfuessli.ch/shop/home/artikeldetails/ID35367941.html?ProvID=10917736&gclid=Cj0KCQiAg_HhBRDNARIsAGHLV5238Q26gQmFttHRnYGjcAhz4CslStb-3qBegvuZS5gnCpWSLNlQvF0aAgfOEALw_wcB"><img border="0" alt="W3Schools" src="https://assets.thalia.media/img/35367941-00-00.jpg" height="180" ></a> </td> </tr> <tr style="background-color:#ffffff"> <td> <a href="http://appliedpredictivemodeling.com/"><img border="0" alt="W3Schools" src="http://static1.squarespace.com/static/51156277e4b0b8b2ffe11c00/t/51157487e4b0b8b2ffe16829/1509217882069/?format=1500w" height="180" ></a> </td> <td> <a href="http://www-bcf.usc.edu/~gareth/ISL/ISLR%20First%20Printing.pdf"><img border="0" alt="W3Schools" src="https://images-na.ssl-images-amazon.com/images/I/41EaH4W9LVL._SX332_BO1,204,203,200_.jpg" height="180" ></a> </td> <td> <a href="https://www.manning.com/books/deep-learning-with-r"><img border="0" alt="W3Schools" src="https://images-na.ssl-images-amazon.com/images/I/51h5d4dYaoL._SX396_BO1,204,203,200_.jpg" height="180" ></a> </td> <td> <a href="https://csgillespie.github.io/efficientR/"><img border="0" alt="W3Schools" src="https://csgillespie.github.io/efficientR/figures/f0_web.png" height="180" ></a> </td> <td> <a href="www.rcpp.org/"><img border="0" alt="W3Schools" src="http://t3.gstatic.com/images?q=tbn:ANd9GcSO9T6JQYtpQgcaCXudbqMB-fnvTjGowsnmeh9-BQku3zveR4-J" height="180" ></a> </td> <td> <a href="http://adv-r.had.co.nz/"><img border="0" alt="W3Schools" src="https://images.tandf.co.uk/common/jackets/amazon/978146658/9781466586963.jpg" height="180" ></a> </td> </tr> </table> <br> --- .pull-left4[ # Webseiten Das Netz ist vll. der beste Ort für Informationen über R. <font size = 4><i>Beginnt eure Suche mit:</i></font> [Google](www.google.com). Stellt sicher, dass ihr *R* oder *Rproject* mit in eurer Suche habt. <br> <font size = 4><i>Meistens werdet ihr dann weitergeleitet zu:</i></font> [R-bloggers](www.r-bloggers.com) informiert euch über die neusten R Entwicklungen. Meldet euch für den Newsletter an. [Stackoverflow](https://stackoverflow.com/questions/tagged/r) ist eine Seite für R Probleme und Lösungen. Versucht selbst mal ein Problem zu posten. Oft bekommt ihr erstaunlich schnell Antwort. ] .pull-right5[ <p align="left" style="padding: 0 0px"><br><br><br><br><br><br><br><br><br> <a href="https://www.google.com/"><img border="0" alt="W3Schools" src="https://raw.githubusercontent.com/therbootcamp/therbootcamp.github.io/master/_sessions/_image/google.png" height="100"></a><br><br><br2> <a href="https://www.r-bloggers.com/"><img border="0" alt="W3Schools" src="https://raw.githubusercontent.com/therbootcamp/therbootcamp.github.io/master/_sessions/_image/rbloggers.png" height="105" style="margin-bottom:10px"></a><br> <a href="https://stackoverflow.com/"><img border="0" alt="W3Schools" src="https://raw.githubusercontent.com/therbootcamp/therbootcamp.github.io/master/_sessions/_image/stackoverflow.png" height="105"></a> </p> ] --- # Support <table class="tg" style="cellspacing:0; cellpadding:0; border:none"> <col width="22%"> <col width="22%"> <col width="22%"> <tr> <th class="tg-yw4l" valign='top'> <p align="center"><br> <a href="www.dirkwulff.org"><img border="0" alt="W3Schools" src="https://therbootcamp.github.io/img/team/1.png" height="230" style="border-radius:50%"></a><br> <p align="center"> <font size = 5>Dr. Dirk Wulff</font><br><br> <a href="www.dirkwulff.org"><b>dirkwulff.org</b></a><br> <a href="https://github.com/dwulff"><b>github.com/dwulff</b></a><br> <font size=4><i>packages: </i></font> <a href="https://cran.r-project.org/web/packages/cstab/index.html"><b>cstab</b></a>, <br> <a href="https://cran.r-project.org/web/packages/mousetrap/index.html"><b>mousetrap</b></a>, <a href="https://cran.r-project.org/web/packages/memnet/index.html"><b>memnet</b> <a href="https://github.com/dwulff/choicepp"><b>choicepp</b> </p> </th> <th class="tg-yw4l" valign='top'><p align="center"><br> <a href="https://psychologie.unibas.ch/en/persons/markus-steiner/about-me/"><img border="0" alt="W3Schools" src="https://therbootcamp.github.io/img/team/2.png" height="230" style="border-radius:50%"></a><br> <p align="center"> <font size = 5>Markus Steiner</font><br><br> <a href="https://github.com/mdsteiner"><b>github.com/mdsteiner</b></a><br> <font size=4><i>packages: </i></font> <a href="https://github.com/mdsteiner/ShinyPsych"><b>ShinyPsych</b></a>, <br> <a href="https://github.com/mdsteiner/EFAdiff"><b>EFAdiff</b></a> <br><br> </p> </th> <th class="tg-yw4l" valign='top'> <p align="center"> <p align="center"><br> <a href="https://www.schulte-mecklenbeck.com/"><img border="0" alt="W3Schools" src="https://therbootcamp.github.io/img/team/3.png" height="230" style="border-radius:50%"></a><br> <p align="center"> <font size = 5>Dr. Michael Schulte-<br>Mecklenbeck</font><br><br> <a href="www.schulte-mecklenbeck.com"><b>schulte-mecklenbeck.com</b></a><br> <a href="https://github.com/schultem"><b>github.com/schultem</b></a><br><br> </p> </th> </tr> </table> --- # Weiterführende Kurse <table class="tg" style="cellspacing:0; cellpadding:0; border:none;"> <tr valign="top"> <col width="25%"> <col width="25%"> <col width="25%"> <col width="25%"> <td> <p align="center"> <a class="project-link" href="http://therbootcamp.github.io/#courses" align="center"> <font style="font-size:20px;weight:700"><br>Explorative Datenanalyse mit R</font><br> <br> <img src="https://therbootcamp.github.io/img/courses/1.png" height="230px" style="border-radius:50%;border:10px solid #E9ECEF"></img><br><br> <high>Februar 14/15, 2020</high><br><br><br> </p> </td> <td> <p align="center"> <a class="project-link" href="http://therbootcamp.github.io/#courses" align="center"> <font style="font-size:20px;weight:700"><br>Statistik mit R<br></font><br> <br> <img src="https://therbootcamp.github.io/img/courses/2.png" height="230px" style="border-radius:50%;border:10px solid #E9ECEF"></img><br><br> <high>March 20/21, 2019</high><br><br><br> </a> </p> </td> <td> <p align="center"> <a class="project-link" href="http://therbootcamp.github.io/#courses" align="center"> <font style="font-size:20px;weight:700"><br>Maschinelles Lernen mit R</font><br> <br> <img src="https://therbootcamp.github.io/img/courses/3.png" height="230px" style="border-radius:50%;border:10px solid #E9ECEF"></img><br><br> <high>April 3/4, 2019</high><br><br><br> </a> </p> </td> <td> <p align="center"> <a class="project-link" href="http://therbootcamp.github.io/#courses" align="center"> <font style="font-size:20px;weight:700"><br>Reporting mit R<br></font><br> <br> <img src="https://therbootcamp.github.io/img/courses/4.png" height="230px" style="border-radius:50%;border:10px solid #E9ECEF"></img><br><br> <high>Mai 15/16, 2019</high><br><br><br> </a> </p> </td> </tr> --- .pull-left45[ # Bitte gebt uns Feedback <br><br> <p align = "center"> <img src="image/feedback.png" height=350px></img><br> <font style="font-size:10px">from <a href="https://cdn-images-1.medium.com/max/1600/1*5OZNYAfzDZfM1lwJBZEuHQ.png">medium.com</a></font> </p> ] .pull-right45[ <p align="center"><br><br> <iframe src="https://docs.google.com/forms/d/e/1FAIpQLSfF0s_OlxihuHLMbEQKNFYhtRQMrOKN5kEl82d86_saQL17tg/viewform?embedded=true" width="430" height="550" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe></p> ] --- class: center, middle # Herzlichen Dank! und noch eine Sache...