Example 5: Google Analytics - Loading a .csv data file into R: PDFR-Code
R Code to reproduce analysis in the text
Chapter 1:
Example 2: Shark Attacks - Proportions and Percentages: PDFR-Code
Example 3: U.S. Shark Attacks - Pie Charts and Bar Charts: PDFR-Code
Example 4: Sodium Content of Cereals - Dotplots: PDFR-Code
Example 5: Sodium Content of Cereals - Stem & Leaf Plot: PDFR-Code
Example 6: TV Hours per Day - Histogram: PDFR-Code
Example 7: Sodium Content of Cereals - Histogram: PDFR-Code
Example 9: Warming Trends in New York City - Time Trend: PDFR-Code
Example 10: Sodium Content - Mean & Median: PDFR-Code
Exercise 2.11: Using the Alligator Food Choice to demonstrate creating basic frequency tables (count and percentages) and Barcharts, Pareto Charts and Pie Charts: PDFR-Code
For each Example, the PDF file shows the code and the correspoding R output. The raw R code is found in the R Code link as a text file. You can either copy and paste the content of this file directly into the R console or open and view it with an editor such as R Studio.