Coder Social home page Coder Social logo

shiny-introstats's Introduction

Shiny Apps for STAT 2, 20, 21, 131A

This is a collcetion of Shiny apps for introductory statistics courses based on the classic textbook Statistics by David Freedman, Robert Pisani, and Roger Purves (2007). Fourth Edition. Norton & Company.

I originally developed these apps for the course Stat 2, and refined them for Stat 20 / Stat 131A, at UC Berkeley. The main motivation behind the apps is to have teaching materials (in the form of interactive graphics) that I can use for living demos during lecture.

The apps are not specifically intended for Stat 2, 20 or 131A. They can be used for any of the introductory Statistics courses at UC Berkeley: STAT 2, STAT 20, STAT 21, STAT W21, STAT 131A, etc. And pretty much in any statistics introductory course in general.

Running the apps

The required software is R and RStudio (preferably a recent version).

Both R and RStudio are free, and are available for Mac OS X, Windows, and Linux.

Assuming that you have both R and RStudio, the other thing you need is the R package "shiny". In case of doubt, run:

install.packages("shiny")

The easiest way to run an app is with the runGitHub() function from the "shiny" package. For instance, to run the app contained in the regression-galton folder, run the following code in R:

library(shiny)

# Run an app from a subdirectory in the repo
runGitHub("shiny-introstats", "gastonstat", subdir = "regression-galton")

Another way to run the apps is by cloning the git repository, then use runApp():

# First clone the repository with git. If you have cloned it into
# ~/regression-galton, first go to that directory, then use runApp().
setwd("~/regression-galton")
runApp()

License

This work is licensed under a FreeBSD License.

Author: Gaston Sanchez

shiny-introstats's People

Contributors

gastonstat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.