highlall: Highlight highest similarities overall (highlall)

Description Usage Arguments Details Value See Also Examples

View source: R/Graphs.R

Description

highlall draws the highest similarities (overall) into an MDS graph.

Usage

1
2
3
highlall(similarity, results, quantile = 30, col = "black",
  coordinates = FALSE, add = FALSE, xlim = NULL, cex.labels = 0.8,
  main = NULL)

Arguments

similarity

Similarity matrix.

results

Results of smacofSym or a set of coordinates.

quantile

Percentage of the highest similarities that should be drawn. Default is 30.

col

Color of the graph. Default is black.

coordinates

If TRUE, the input results consist of a set of coordinates. Default is FALSE.

add

If TRUE, the points will be added to the existing plot. Default is FALSE.

xlim

Numeric vector giving the x coordinates range.

cex.labels

Numeric value indicating font size of the labels.

main

Title of the plot.

Details

This function is applicable to an MDS solution computed with the package 'smacof' (Mair, De Leeuw, Borg, & Groenen) or a set of coordinates. It adds the quantile percent of highest similarities, as indicated by the similarity matrix similarity, to the plot of the respective map. The objects must occur in the same order in the results/ coodinates and the similarity matrix.

Value

Nothing.

See Also

smacofSym.

Examples

1
2
3
4
5
6
7
8
## Calculating an MDS using the package 'smacof' and showing the 25% 
## highest similarities
data(SDG_coocurrence)
SDG_coocurrence <- SDG_coocurrence[,-2] # Drop second column
similarities <- simi(SDG_coocurrence, method = "as")
dissimilarities <- 1 - similarities
res <- smacof::smacofSym(dissimilarities, type = "ordinal")
highlall(similarities, res, quantile = 25, main = "25% Highest Similarities")

thectar documentation built on Nov. 16, 2019, 1:07 a.m.