class: center, middle, inverse, title-slide # STA 517 3.0 Programming and Statistical Computing with R ## Welcome! ### Dr Thiyanga Talagala ### 2020-08-16 --- background-image: url('me.png') background-position: center background-size: cover --- background-image: url('courseweb_msc.png') background-position: center background-size: cover --- background-image: url('courseweb.png') background-position: center background-size: cover --- background-image: url('book.png') background-position: center background-size: contain --- background-image: url('RLadies.jpg') background-position: center background-size: cover # Toulouse, France, June-2019 --- background-image: url('rl1.png') background-position: center background-size: cover ## @RLadiesColombo --- background-image: url('rl2.png') background-position: center background-size: cover ## @RLadiesColombo --- background-image: url('scs.png') background-position: center background-size: cover # https://scs-fas-sjp.netlify.app/ --- background-image: url('classoverview.png') background-position: center background-size: cover # Class overview - precourse survey --- # Class overview - precourse survey ```r software <- c("R", "Python", "MINITAB", "SPSS", "C++", "STATA", "SAS") count <- c(4, 0, 10, 12, 1, 1, 1) df <- data.frame(software, count) df ``` ``` software count 1 R 4 2 Python 0 3 MINITAB 10 4 SPSS 12 5 C++ 1 6 STATA 1 7 SAS 1 ``` --- # Class overview - precourse survey ```r library(ggplot2) p1 <- ggplot(data=df, aes(x=software, y=count)) + geom_bar(stat="identity") p1 ``` ![](l0_files/figure-html/unnamed-chunk-2-1.png)<!-- --> --- # Class overview - precourse survey ```r df$software <- factor(df$software, levels=c("SPSS", "MINITAB", "R", "SAS", "STATA", "C++", "Python")) p1 <- ggplot(data=df, aes(x=software, y=count)) + geom_bar(stat="identity") p1 ``` ![](l0_files/figure-html/unnamed-chunk-3-1.png)<!-- --> --- # Class overview - precourse survey ```r df$software <- factor(df$software, levels=c("SPSS", "MINITAB", "R", "SAS", "STATA", "C++", "")) p1 <- ggplot(data=df, aes(x=software, y=count)) + geom_bar(stat="identity", fill="forestgreen") p1 ``` ![](l0_files/figure-html/unnamed-chunk-4-1.png)<!-- --> --- # Class overview - precourse survey ```r df$software <- factor(df$software, levels=c("SPSS", "MINITAB", "R", "SAS", "STATA", "C++", "")) p1 <- p1 + coord_flip() p1 ``` ![](l0_files/figure-html/unnamed-chunk-5-1.png)<!-- --> --- # Class overview - precourse survey ```r library(plotly) ggplotly(p1) ```
--- background-image: url('horse.png') background-position: center background-size: cover