chapter 1: introducing r, rstudio, and shinyr is a collaborative project with many contributors ....

26
Chapter 1: Introducing R, RStudio, and Shiny About R A quick guide to R

Upload: others

Post on 24-Mar-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Chapter 1: Introducing R, RStudio, and Shiny

About R

A quick guide to R

Page 2: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

About RStudio

Quick guide to RStudio

Page 3: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages
Page 4: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

About Shiny

Page 5: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Chapter 2: First Steps To Program in R

Object-oriented programming concepts

Page 6: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Element selection

Selecting elements from lists

Page 7: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Chapter 3: An Introduction to Data Processing in R

Sorting elements

sort() versus order()

Page 8: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Chapter 4: Shiny Structure – Reactivity Concepts

An introduction to server.R and UI.R

The concept of reactivity

Page 9: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

An overview of simple examples

Page 10: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Chapter 5: Shiny in Depth – A Deep Dive into Shiny's World

UI.R

The structure

conditionalPanel() – Example 1

An example on the use of tabPanel() in tabsetPanel()

Page 11: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Inputs

Buttons

submitButton() with conditionalPanel()

downloadButton() – an example

Page 12: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Chapter 6: Using R's Visualization Alternatives in Shiny

graphics

Page 13: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages
Page 14: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Boxplot

Page 15: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Points

Lines

Page 16: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Legends

Page 17: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Plotting a fully customized plot with the graphics package

Page 18: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

ggplot2 – first steps

Some graphical tools in ggplot2

geom_point

Page 19: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

geom_line

Page 20: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

geom_bars

Page 21: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

An applied example with multiple layers

Page 22: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Chapter 9: Interactive Graphics in Shiny

Interaction possibilities within R graphics

Page 23: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

D3.js integration

An introduction to htmlwidgets

D3BarChart.yaml

Page 24: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Chapter 11: From White Paper to a Full Application

Conceptual design

Page 25: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages

Styling

Discovering insights in the application

Page 26: Chapter 1: Introducing R, RStudio, and ShinyR is a collaborative project with many contributors . Type contributors O for more information and citation O' on how to cite R or R packages