# Articles by Kevin

### AP Statistics R Programming Assignment

May 20, 2021 |

My AP Stats class has started their first R programming assignment this week. I gave them the code for them to type in and play with. This will give them some experience with RStudio and basic function commands. I have a total of six assignments for th... [Read more...]

### AP Statistics R Programming Assignment 2

November 23, 2019 |

Our second assignment involves students downloading an Excel file from the internet and importing it into the RStudio environment. They will then write code to give summary statistics and the five-number summary. The Sharp Sight website has a nice explanation of using ggplot for creating scatter plots. Go here to ... [Read more...]

### My AP Statistics Class First R Programming Assignment Using RStudio

November 12, 2019 |

My AP Stats class has started their first R programming assignment this week. I gave them the code for them to type in and play with. This will give them some experience with RStudio and basic function commands. I have a total of six assignments for them to complete over ... [Read more...]

### Simulation in R For AP Statistics

November 28, 2016 |

Make a simulation and function using R. I continue to teach some R programming in my AP Stats class because this is an essential skill for them to have. We are now in chapter five of our textbook, Probability and Simulation. I had my students review the parking problem on ... [Read more...]

### Make A Box Plot with Single Column Data Using Ggplot2 Tutorial

November 7, 2016 |

Last week I had my class practice making a box plot using the data on page 66 in The Practice of Statistics 4th Edition (TPS 4ed) text book. I’m still going over the details of making a box plot with just a single vector or variable of data. Many of ... [Read more...]

### Introduction to R : A 12 month Air Quality Plot

October 26, 2016 |

Here is my completed visualization analysis of the year 2015 using R and ggplot. I also experimented with the ggExtra package to see what additional information it would give. The density plot on the right margin helps to point out that the most common 2.5AQI was between 10 and 100.   As you can ... [Read more...]

### Introduction To R Programming : How I Learn Best

October 22, 2016 |

How Best To Learn R Programming So what’s the best or most efficient way to learn R programming? I have read numerous books and blogs on R programming in an attempt to learn more about R. While doing this has helped me understand the basics, these resources tend to ... [Read more...]

### Intro to R Programming | AP Statistics Histograms with ggplot

October 8, 2016 |

I will continue to work out of the The Practice Of Statistics 4th edition book and recreate some histograms. I used the data on page 35 in Chapter 1. My students will be getting this lesson this week. After they make their firs histograms, I’ll have them compare the R histogram ... [Read more...]

### How To Make a Scatter Plot in R for AP Statistics Using R Markdown

October 2, 2016 |

We are starting the third unit in AP Statistics and we will be learning about scatter plots and regression. I will teach them how to do this in R and also how to do it on the TI nspire cx. I have already gone over some of the basics of ... [Read more...]

### Creating plots with ggplot2 in IB Mathematics Year II

September 30, 2016 |

My year II IB Mathematics class is going very well this year. Our hard work last year is starting to pay off in that we know how to use ggplot2, dplyr and now R Markdown. The students will complete their Internal assessment, which is a large research report, by the ... [Read more...]

### Why I Teach R Programming to my AP Statistics Class

July 11, 2016 |

AP Statistics and R Programming Should AP Statistics students learn to program in R? Definitely yes. R is a powerful programming language and an important skill to have entering college. In my class, we use the TI-Nspire CX graphing calculator for most of our course work during the year but ... [Read more...]

### How To Print x Label Vertical In Ggplot2

June 22, 2016 |

I was working with some boxplots last month and I needed to plot twelve months of air quality data. The problem was that the twelve months over lapped each other and the plot didn’t look good. If I could only draw the x labels vertical. For this example, I’... [Read more...]

### Working with Rmd files using knitr and WordPress

June 14, 2016 |

Author Kevin June 14, 2016 This is a page I created in R Markdown and used knitr to produce the output to html. I then copied the html file into a new post and did some editing. I am using the data from the “airquality” data set already in R and I ... [Read more...]