worldplot: Worldplot

Description Usage Arguments Value Examples

Description

Takes in a year vector of data and returns a map of the US or international countries that maps the geographical distribution of the datasets

Usage

1
2
worldplot(year, title = "", US = TRUE, save = FALSE,
  interactive = FALSE)

Arguments

year

The vector for the year that is to be mapped

title

The title of the plot and the name which it will be saved to

US

choice of mapping US territories or mapping international countries

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 year dataset mapped to it

Examples

1
2
3
4
5
##Creating a state map of the data with data from 2001
usmap2001 <- worldplot(yearsdata$X2001, title = "Change in Students 2000-2001")

##Creating an international map with interactive view
worldmap <- worldplot(yearsdata$X2014, title = "Change in Students 2000-2001", interactive = TRUE)

jian13579/HutchinHill documentation built on May 19, 2019, 9:28 a.m.