Articles by Kevin

AP Statistics R Programming Assignment

May 20, 2021 | Kevin

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 | Kevin

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...]

Simulation in R For AP Statistics

November 28, 2016 | Kevin

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...]

Introduction to R : A 12 month Air Quality Plot

October 26, 2016 | Kevin

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 | Kevin

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...]

Creating plots with ggplot2 in IB Mathematics Year II

September 30, 2016 | Kevin

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 | Kevin

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 | Kevin

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 | Kevin

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...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)