Learn R Programming

eechidna (version 1.1)

launchApp: Shiny app for exploring census and electorate data

Description

Shiny app for exploring census and electorate data

Usage

launchApp(age = c("Age00_04", "Age05_14", "Age15_19", "Age20_24", "Age25_34",
  "Age35_44", "Age45_54", "Age55_64", "Age65_74", "Age75_84", "Age85plus"),
  religion = c("Christianity", "Catholic", "Buddhism", "Islam", "Judaism",
  "NoReligion"), other = c("Population", "MedianIncome", "Unemployed",
  "Bachelor", "Postgraduate", "BornOverseas", "Indigenous", "EnglishOnly",
  "OtherLanguageHome", "Married", "DeFacto", "FamilyRatio", "Internet",
  "NotOwned"), palette = c("#1B9E77", "#F0027F", "#E6AB02", "#66A61E",
  "#7570B3", "#D95F02", "#3690C0"))

Arguments

age
Age variables to show. Variable(s) should match column names from abs2011. By default, all variables are shown.
religion
Religion variables to show. Variable(s) should match column names from abs2011. By default, all variables are shown.
other
Other census variables to show. Variable(s) should match column names from abs2011. By default, all variables are shown.
palette
a named character vector of selection colors. The vector names are used as the display in the drop-down control.

Examples

Run this code
## Not run: ------------------------------------
# # for comparing labor/liberal
# launchApp(
#   age = c("Age20_24", "Age25_34", "Age55_64"),
#   religion = c("Christianity", "Catholic", "NoReligion"),
#   other = c("Population", "MedianIncome", "Unemployed")
# )
# 
# # for inspecting highly contested areas
# launchApp(
#   age = c("Age25_34"),
#   religion = c("Christianity", "Catholic", "NoReligion"),
#   other = c("NotOwned", "Indigenous", "Population")
# )
# 
## ---------------------------------------------

Run the code above in your browser using DataLab