countrymap: Country map

Description Usage Arguments Value Examples

View source: R/countrymap.R

Description

Takes in two years worth of datasets and returns a map of the international countries that maps the difference of the two datasets

Usage

1
2
countrymap(currentyear, oldyear, title = "", save = FALSE,
  interactive = FALSE)

Arguments

currentyear

The vector of a dataset for the most current year

oldyear

The vector of a dataset for the year you want to compare to

title

The title of the plot and the name that the plot is saved to

save

TRUE to save, FALSE to not

interactive

TRUE to choose the interactive mode in viewer, FALSE to view in just the default plot

Value

a s4 object that has the difference of the datasets mapped to it

Examples

1
2
3
##Creating the map of the data with data from 2001 and 2000, as well as using save and interactive move
countrymap2000.2001 <- countrymap(yearsdata$X2001, yearsdata$X2000, title = "Change in Students 2000-2001",
save = TRUE, interactive = TRUE)

jian13579/mapstu documentation built on May 17, 2017, 8:25 p.m.