Last data update: 2014.03.03

R: House of Representatives Voting Data
votingR Documentation

House of Representatives Voting Data

Description

Voting results for 15 congressmen from New Jersey.

Usage

data("voting")

Format

A 15 times 15 matrix.

Details

Romesburg (1984) gives a set of data that shows the number of times 15 congressmen from New Jersey voted differently in the House of Representatives on 19 environmental bills. Abstentions are not recorded.

Source

H. C. Romesburg (1984), Cluster Analysis for Researchers. Lifetime Learning Publications, Belmont, Canada.

Examples


  data("voting", package = "HSAUR")
  require("MASS")
  voting_mds <- isoMDS(voting)
  plot(voting_mds$points[,1], voting_mds$points[,2],
       type = "n", xlab = "Coordinate 1", ylab = "Coordinate 2",
       xlim = range(voting_mds$points[,1])*1.2)
  text(voting_mds$points[,1], voting_mds$points[,2], 
       labels = colnames(voting))
  voting_sh <- Shepard(voting[lower.tri(voting)], voting_mds$points)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(HSAUR)
Loading required package: tools
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HSAUR/voting.Rd_%03d_medium.png", width=480, height=480)
> ### Name: voting
> ### Title: House of Representatives Voting Data
> ### Aliases: voting
> ### Keywords: datasets
> 
> ### ** Examples
> 
> 
>   data("voting", package = "HSAUR")
>   require("MASS")
Loading required package: MASS
>   voting_mds <- isoMDS(voting)
initial  value 15.268246 
iter   5 value 10.264075
final  value 9.879047 
converged
>   plot(voting_mds$points[,1], voting_mds$points[,2],
+        type = "n", xlab = "Coordinate 1", ylab = "Coordinate 2",
+        xlim = range(voting_mds$points[,1])*1.2)
>   text(voting_mds$points[,1], voting_mds$points[,2], 
+        labels = colnames(voting))
>   voting_sh <- Shepard(voting[lower.tri(voting)], voting_mds$points)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>