Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 1.27 KB

README.md

File metadata and controls

32 lines (17 loc) · 1.27 KB

Histograms for NBA players data

This is a Shiny app that generates histograms using data of NBA players from the season 2015-2016..

Motivation

The goal is to provide examples of histograms and distributions of quantitative variables. Statistics, Chapter 3: The Histogram (pages 32-56):

  • A variable is a characteristic of the subjects in a study. It can be either qualitative or quantitative.
  • A histogram is a visual display used to look at the distribution of a quantitative variable.
  • A histogram represents precents by area. It consists of a set of blocks. The area of each block represents the percentage of cases in the correspoding class interval.
  • With the density scale, the height of each block equals the percentage of cases in the the corresponding class interval, divided by the length of that interval.

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

Data

The data set is in the nba_players.csv file (see data/ folder) which contains 528 rows and 39 columns, although this app only uses quantitative variables.

How to run it?

library(shiny)

# Easiest way is to use runGitHub
runGitHub("introstat-spring-2017", "ucb-introstat", subdir = "apps/ch03-histograms")