/UN_IdealPoints

UN Ideal Points data visualization project

Primary LanguageR

IdealPoints Data Visualization

This repo is an interactive data visualization project for Prof. Bailey.

overview

Features

Users can select name(s) of justice of interest when they want to compare ideal points for each justice.

Select

Users can compare up to five justices.

compare

Users can zoom-in plot with ploy.ly frame.

zoom_in zoom_in_2

How to use

  1. Download the repo as a zip file (or clone it)

  2. Set the IdealPoints folder as the working directory in R.

  3. Change the API key in server.R to an active one (see email or register with plot.ly).

  4. Install the plotly package from GitHub

    # Install and load the devtools package. 
    install.packages("devtools")
    library("devtools")
    
    # install plotly
    install_github("ropensci/plotly")
  5. Call shiny inside R

    shiny::runApp()