-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.
R Code to reproduce analysis in the text
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
Exercise 2.11: Using the Alligator Food Choice to demonstrate creating basic frequency tables (count and percentages) and Barcharts, Pareto Charts and Pie Charts: Pdf Document showcasting code , R Code