Roy Wang
26th,May 2016
This is an R project that created for the Developing Data Products Class of Coursera's Data Science Specialization.
Display the population no. of each city in USA.
Visualization of the populations on map of USA.
library(shiny)
library(maps)
# Getting data from the us.cities
data(us.cities)
# The UI of the application. On the left of the page will be dropdown list of the cities in USA
shinyUI(
navbarPage("Populations Map Of The City In USA",
tabPanel("Map",
sidebarPanel(
selectInput('city', 'Cities of USA', choices=us.cities$name)
))
))
<!–html_preserve–>