animals | R Documentation |
To illustrate the MDS analysis of sorting data, Takane et al. (2009) refer to judgments on the similarity between n = 18 animals expressed by S = 20 subjects. Each subject was asked to divide the animals into as many groups as needed, based on their similarity. We converted these values to 0 or 1 depending on whether a pair of animals is placed or not in the same group by a subject.
data(animals)
A dmbc_data
object whose diss
element is a list of 20
binary dissimilarity matrices. Each matrix is defined as a dist
object measuring whether each pair of the 18 animals has is placed in the
same group (1) or not (0).
The dist
objects have rows and columns that are named as follows:
bear
camel
cat
cow
dog
elephant
giraffe
fox
horse
lion
monkey
mouse
pig
rabbit
sheep
squirrel
tiger
wolf
Takane, Y., Jung, S., Takane, Y. O. (2009). "Multidimensional Scaling". In Millsap, R. E., Maydeu-Olivares, A. (eds.), The SAGE Handbook of Quantitative Methods in Psychology, chapter 10, pp. 217–242,.
data(animals) library(bayesplot) cols <- color_scheme_set("teal") plot(animals, colors = unlist(cols)[c(1, 6)], font = 1, cex.font = 0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.