Blog Archives

Simulation in R For AP Statistics

November 28, 2016
By
Simulation in R For AP Statistics

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 page 290. The problem asked

Read more »

Make A Box Plot with Single Column Data Using Ggplot2 Tutorial

November 7, 2016
By
Make A Box Plot with Single Column Data Using Ggplot2 Tutorial

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 the problems in our textbook

Read more »

Introduction to R : A 12 month Air Quality Plot

October 26, 2016
By
Introduction to R : A 12 month Air Quality Plot

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 see,

Read more »

Introduction To R Programming : How I Learn Best

October 22, 2016
By
Introduction To R Programming : How I Learn Best

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 get off track. Usually, when I

Read more »

Intro to R Programming | AP Statistics Histograms with ggplot

October 8, 2016
By
Intro to R Programming | AP Statistics Histograms with ggplot

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 to the histogram on

Read more »

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

October 2, 2016
By
How To Make a Scatter Plot in R for AP Statistics Using R Markdown

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 opening RStudio and entering some

Read more »

Creating plots with ggplot2 in IB Mathematics Year II

September 30, 2016
By
Creating plots with ggplot2 in IB Mathematics Year II

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 end of December. I have

Read more »

Why I Teach R Programming to my AP Statistics Class

July 11, 2016
By
Why I Teach R Programming to my AP Statistics Class

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 there are times when I

Read more »

How To Print x Label Vertical In Ggplot2

June 22, 2016
By
How To Print x Label Vertical In Ggplot2

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’ll show you how to plot the

Read more »

Working with Rmd files using knitr and WordPress

June 14, 2016
By
Working with Rmd files using knitr and WordPress

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 followed  Rodger Peng’s

Read more »

Search R-bloggers

Sponsors

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)