This function creates a D3.js ideal point estimation graph for legislative roll call data.

d3_rollcall_idealpoint()

Arguments

data

= data

width

= NULL

height

= NULL

Building upon R ideal points graphs

The function wraps around D3.js and requires installation of the RStudio daily build (see https://rstudio.github.io/r2d3/ for clarification). You can set the width and height of the graph. You must call the data by calling a data frame or matrix.

Examples

if (FALSE) d3_rollcall_idealpoints(data=estimates, height=10, width=6)