Description Usage Format Details Source References Examples
A standard data set for Multidimensional Scaling (MDS) obtained by Rothkopf based on the confusion rates observed by exposing subjects to pairs of morse codes.
1 |
9 data sets used for analyzing the data in XGvis and XGobi.
morsecodes.raw | 36 x 36 raw data of confusion rates |
morsecodes.dist | 36 x 36 dissimilarity matrix |
morsecodes.pos | 36 x 10 initial configuration |
morsecodes.colors | 36 point colors |
morsecodes.glyphs | 36 point glyphs |
morsecodes.lines | 33 lines |
morsecodes.linecolors | 33 line colors |
morsecodes.row | 36 x 2 matrix of (letter, morsecode) |
morsecodes.col | 10 column names of the initial configuration |
The raw data from the XGvis directory may be read as
mc.raw <- as.matrix(read.table("....xgobi/data_xgvis/morsecodes.raw"))
dimnames(mc.raw) <- NULL; storage.mode(mc.raw) <- "integer"
morsecodes.raw <- mc.raw
.
The *.dist
matrix is produced from the raw data by
mc.sim <- (mc.raw + t(mc.raw))/2 ; ds <- diag(mc.sim)
morsecodes.dist <- rep(ds,36) + rep(ds,rep(36,36)) - 2*mc.sim
,
i.e., d[i,j] := s[i,i] +
s[j,j] - 2 * s[i,j].
Contained in the ‘data\_xgvis’ subdirectory of the XGobi and XGvis source bundle, available via http://www.research.att.com/areas/stat/xgobi/index.html#download.
A. Buja, D. F. Swayne, M. Littman, & N. Dean (1998). XGvis: Interactive Data Visualization with Multidimensional Scaling. http://www.research.att.com/areas/stat/xgobi/xgvis98.ps.gz.
1 2 3 4 5 6 7 8 9 10 | data(morsecodes)
ls.str(pat="^morsecode")
morsecodes.row # remember what you learned in...
## real row names
(mc.row <- paste(morsecodes.row[,1], morsecodes.row[,2]))[1:8]
image(1:36, 1:36, morsecodes.raw, main="`morsecodes' raw confusion rates")
text(1:36,1:36, morsecodes.row[,1])
##--> help(xgvis) for running multidimensional scaling (MDS) and XGobi on these
|
morsecodes.col : chr [1:12] "LEN" "DASH" "POS 1" "POS 2" "POS 3" "POS 4" "POS 5" "SEQ" ...
morsecodes.colors : chr [1:36] "SkyBlue" "Green" "Green" "Yellow" "HotPink" "Green" "Yellow" ...
morsecodes.dist : int [1:36, 1:36] 0 167 169 159 180 164 163 163 75 165 ...
morsecodes.glyphs : num [1:36] 27 27 27 27 27 27 27 27 27 27 ...
morsecodes.linecolors : chr [1:33] "SkyBlue" "SkyBlue" "Green" "Green" "Green" "Green" "Yellow" ...
morsecodes.lines : num [1:33, 1:2] 1 1 2 2 3 3 4 4 5 6 ...
morsecodes.pos : num [1:36, 1:12] 0.25 0.75 0.75 0.5 0 0.75 0.5 0.75 0.25 0.75 ...
morsecodes.raw : int [1:36, 1:36] 92 5 4 8 6 4 9 3 64 7 ...
morsecodes.row : chr [1:36, 1:2] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" ...
[,1] [,2]
[1,] "A" ".-"
[2,] "B" "-..."
[3,] "C" "-.-."
[4,] "D" "-.."
[5,] "E" "."
[6,] "F" "..-."
[7,] "G" "--."
[8,] "H" "...."
[9,] "I" ".."
[10,] "J" ".---"
[11,] "K" "-.-"
[12,] "L" ".-.."
[13,] "M" "--"
[14,] "N" "-."
[15,] "O" "---"
[16,] "P" ".--."
[17,] "Q" "--.-"
[18,] "R" ".-."
[19,] "S" "..."
[20,] "T" "-"
[21,] "U" "..-"
[22,] "V" "...-"
[23,] "W" ".--"
[24,] "X" "-..-"
[25,] "Y" "-.--"
[26,] "Z" "--.."
[27,] "1" ".----"
[28,] "2" "..---"
[29,] "3" "...--"
[30,] "4" "....-"
[31,] "5" "....."
[32,] "6" "-...."
[33,] "7" "--..."
[34,] "8" "---.."
[35,] "9" "----."
[36,] "0" "-----"
[1] "A .-" "B -..." "C -.-." "D -.." "E ." "F ..-." "G --." "H ...."
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.