Dream to Learn is shutting down...

We are very sorry to say that Dream to Learn will be shutting down as of December 28th, 2019. If you have content that you wish to keep, you should make a copy of it before that date.


R & GoogleVis - Tutorial #1 - Canadian Provincial Population

POSTED IN: Data Analytics & Visualization Blog

Tutorial #1: Canadian Provinces: Population Changes 1971-2013

Demonstration of R Programming Language and GoogleVis library - gvisMotionChart applied to Canadian Provincial Populations from 1971 to 2013


## Basic code to run in "R"


setwd("C:/Users/Home/Documents/DTL Data Viz Community/Canada") ## set to your own directory
pop <- read.csv("Canada Stats POP3.csv")  ## I'll post link to GoogleDrive to share info
Motion=gvisMotionChart(pop, idvar="province", timevar="year")


## And here is is Data in CSV file - ready to go:



YouTube Links 

Video Starting at Visual Stuff @ timestamp 3:20:  https://www.youtube.com/watch?v=UM_yNrpRPdw#t=200

Full Video Showing R Code:                                   https://www.youtube.com/watch?v=UM_yNrpRPdw

Interested in more content by this author?

About the Author

Ryan Anderson

Ryan Anderson

Hi! I like to play with data, analytics and hack around with robots and gadgets in my garage. Lately I've been learning about machine learning.

About this blog

Description is...<br/>Data Analytics & Visualization Blog - Generating insights from Data since 2013

Created: July 25, 2014


Up Next