Articles by Kevin

AP Statistics R Programming Assignment 2

November 23, 2019 | 0 Comments

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 | 0 Comments

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 | 0 Comments

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 | 0 Comments

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 | 0 Comments

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

Creating plots with ggplot2 in IB Mathematics Year II

September 30, 2016 | 0 Comments

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 | 0 Comments

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 | 0 Comments

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 | 0 Comments

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)