Skip to content

Commit

Permalink
append ch10 to regression strips app
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonstat committed Apr 30, 2016
1 parent 132c435 commit bcd8280
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
File renamed without changes.
13 changes: 8 additions & 5 deletions regression-strips/README.md → ch10-regression-strips/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# Vertical Strips for Galton's Height data

This is a Shiny app that generates a scatter diagram to illustrate the distribution of values on the y-axis within a vertical strip.
This is a Shiny app that generates a scatter diagram to illustrate the
distribution of values on the y-axis within a vertical strip.


## Motivation

The goal is to provide a visual display of some of the concepts from __Statistics, Chapter 10: Regression__ (pages 158-165):
The goal is to provide a visual display of some of the concepts from
__Statistics, Chapter 10: Regression__ (pages 158-165):

- Point of averages
- SD line
- Graph of averages
- Regression line
- Correlation coefficient

Reference: "Statistics" by David Freedman, Robert Pisani and Roger Purves (2007). Fourth Edition. Norton & Company.
Reference: "Statistics" by David Freedman, Robert Pisani and Roger
Purves (2007). Fourth Edition. Norton & Company.


## Data
Expand All @@ -40,14 +43,14 @@ There are many ways to download the app and run it:
library(shiny)

# Easiest way is to use runGitHub
runGitHub("shiny-introstats", "gastonstat", subdir = "regression-strips")
runGitHub("shiny-introstats", "gastonstat", subdir = "ch10-regression-strips")
```

Or you can [clone](http://stackoverflow.com/questions/651038/how-do-you-clone-a-git-repository-into-a-specific-folder) the git repository, then use `runApp()`:

```R
# First clone the repository with git. If you have cloned it into
# ~/shiny-introstats, first go to that directory, then use runApp().
setwd("~/shiny-introstats/regression-strips")
setwd("~/shiny-introstats/ch10-regression-strips")
runApp()
```
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Regression Strips
# Regression line and vertical strips
# Chapter 10: Regression
# Page 158-178

library(shiny)

dat <- read.csv('Galton.csv')
Expand Down
4 changes: 4 additions & 0 deletions regression-strips/ui.R → ch10-regression-strips/ui.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Regression Strips
# Regression line and vertical strips
# Chapter 10: Regression
# Page 158-178

library(shiny)

Expand Down

0 comments on commit bcd8280

Please sign in to comment.