Little Book
1
Introduction
1.1
Womens Tennis Matches Dataset
1.2
Meteorite Landings Dataset
1.3
Adverse Food Events Dataset
1.4
Live version
2
Variable Types
2.1
Numeric Variables
2.2
Categorical Variables
3
Graph Types
3.1
Bar Plot
3.2
Histogram
3.3
BoxPlot
3.4
Scatter Plot
3.5
Facet
3.6
Maps
4
Grammar of Data manipulation
4.1
Reorder function
I Womens Tennis
5
Introduction
6
Load Libraries
7
Read the data
8
Countries and Players
9
Rankings and Year
10
Number of No 1 Tennis Players each year
10.1
Number of No 1 Tennis Players from 2017 to 2003
10.2
Number of No 1 Tennis Players from 1984 to 2003
11
Trend of rankings of Serena Williams
11.1
Rankings above 100
12
Trend of rankings of Steffi Graf
13
Trend of rankings of Simona Halep
14
Trend of rankings of Sania Mirza
15
Australian Open Winners
15.1
Distribution of Age of Australian Open Winners
16
French Open Winners
16.1
Distribution of Age of French Open Winners
17
Wimbledon Winners
17.1
Distribution of Age of Wimbledon Winners
18
US Open Winners
18.1
Distribution of Age of US Open Winners
19
Height difference between winners and losers
19.1
Histogram
19.2
Density Plot
19.3
Tabular data
20
Age difference between winners and losers
21
Feature Engineering : First, Second , Third Set Winners and Losers
21.1
Percentage of Winners after losing 1st set
21.2
Most wins after losing the first set
21.3
Percentage of Winners after losing 2nd set
21.4
Most wins after losing the second set
21.5
Percentage of Winners after losing 1st set in Grand Slams
21.6
Percentage of Winners after losing 2nd set in Grand Slams
21.7
Percentage of Winners after losing 1st set in Australian Open
21.8
Percentage of Winners after losing 2nd set in Australian Open
21.9
Percentage of Winners after losing 1st set in Wimbledon
21.10
Percentage of Winners after losing 1st set in French Open
21.11
Percentage of Winners after losing 1st set in US Open
22
Surfaces
22.1
All Surfaces
22.2
Hard Surface
22.3
Clay Surface
22.4
Grass Surface
22.5
Carpet Surface
23
Tournament Levels
23.1
Most Wins in Grand Slams
23.2
Most matches in Premier Tournament Level
23.3
Most Wins in Premier Tournament Level
23.4
Most matches in I Tournament Level
23.5
Most Wins in I Tournament Level
23.6
Most matches in T1 Tournament Level
23.7
Most Wins in T1 Tournament Level
23.8
Most matches in T2 Tournament Level
23.9
Most Wins in T2 Tournament Level
23.10
Most matches in T3 Tournament Level
23.11
Most Wins in T3 Tournament Level
24
Upsets
24.1
Players causing upsets in Grand Slam Finals
24.2
Upsets in Grand Slam SemiFinals
24.3
Upsets in T1 tournaments
24.4
Upsets in T2 tournaments
25
Simona Halep
26
Caroline Wozniacki
27
Height of players across years
27.1
Tabular Data of Heights across years
II Meteorite Landings
28
Prepare for Analysis
28.1
Install the Software
28.2
Install the packages
28.3
Create a R project
28.4
Get the Data
29
Read the Data
29.1
Peek into the Data
30
Class Analysis
30.1
Meteorites Class Count
30.1.1
Top 20 Class Of Meteorites by Count
30.1.2
Top 20 Meteorites and their Counts
30.2
Top 20 Class Of Meteorites by Mass
30.2.1
Median Mass
30.2.2
Median Mass Tabular Data
30.2.3
Mean Mass
30.2.4
Mean Mass Tabular Data
31
Distribution of Mass
31.1
Heaviest Meteorite
31.2
Lightest Meteorite
31.3
Valid Lightest Meteorite
31.4
Distribution of Mass classified by Fall Type
31.4.1
Autoselect Fall Type Colors
31.4.2
Select Fall Type Colors
31.5
Mass with plots for each fall Type
31.6
Mass with plots for each fall Type
31.7
Mass with plots for each fall Type ( partially removing outliers)
32
Distribution of Meteorite Landings
32.1
Distribution of Meteorite Landings with Meteorite Mass
33
Distribution of Indian Meteorite Landings
33.1
Peek into the Indian Met Landings Data
33.2
Distribution of Indian Meteorite Landings with Fall Classification
33.3
Distribution of Indian Meteorite Landings with Meteorite Mass
33.4
Heatmap of Indian Meteorite Landings
33.5
Distribution of Indian Meteorite Landings with Cluster Markers
34
Distribution of US Meteorite Landings
34.1
Peek into the US Met Landings Data
34.2
Distribution of US Meteorite Landings with Meteorite Mass
34.3
Heatmap of US Meteorite Landings
34.4
Distribution of US Meteorite Landings with Cluster Markers
35
Distribution of African Meteorite Landings with Meteorite Mass
35.1
Peek into the Africa Met Landings Data
35.2
Heatmap of Africa Meteorite Landings
35.3
Distribution of Africa Meteorite Landings with Cluster Markers
36
Distribution of Aus Meteorite Landings with Meteorite Mass
36.1
Peek into the Aus Met Landings Data
36.2
Heatmap of Aus Meteorite Landings
36.3
Distribution of Aus Meteorite Landings with Cluster Markers
37
Year Analysis
37.1
Years with the Most Meteorite Landings
37.2
Time Series from Year 1970
37.3
Comparison of Mass and Years
37.4
Comparison of Mass and Years from 1900 onwards
38
L6 Meteorite Analysis
38.1
Distribution of L6 Meteorite Landings
38.2
Summary of the L6 Meteorites Mass
38.3
Time Series from Year 1970 for L6
38.4
Distribution of L6 US Meteorite Landings with Meteorite Mass
38.5
Distribution of Indian Meteorite L6 Landings with Meteorite Mass
III Adverse Food Event
39
Read the Data
40
Peek into the Data
41
Rename Fields
42
Ten Most Common Symptoms
43
Ten Most Common Product Name
44
Ten Most Common Industry Name
45
Ages Commonly Affected
46
Distribution of Ages
46.1
70 and Above Adverse Products
46.2
Age 60 - 69 Adverse Products
46.3
Age 50 - 59 Adverse Products
46.4
Less than 5 Adverse Products
47
Ten Most Common Outcomes
48
Outcomes and Products associated with Adverse Events
48.1
Death Products
48.2
Death Products for Age 70 and Above
48.3
Disability Products
49
Symptoms and the Products Causing it
49.1
Diarrhoea
49.2
Vomiting
49.3
Abdominal Pain
49.4
Dizziness
50
Time Analysis of Adverse Events
50.1
Year wise
50.2
Most Common Month for Adverse Events
51
Products in Adverse Events for January
51.1
Wen Cleansing Conditioner Symptoms
51.2
Vitamin D Symptoms
51.3
Hydroxycut Symptoms
51.4
MultiVitamin Symptoms
51.5
Fish Oil Symptoms
52
Gender and Adverse Events
52.1
Plot Products for Female
52.2
Plot Products for Male
52.3
Female Symptoms Top 10
52.4
Male Symptoms Top 10
Published with bookdown
Little Book on Exploratory Data Analysis
Chapter 12
Trend of rankings of Steffi Graf
plotTrendsRankings
(players_rankings,
"Steffi"
,
"Graf"
,
"Trend of Ranking for Steffi Graf"
)