Custom function to draw mds maps. Uses Rcssplot and some hard settings
1 2 3 4 |
xylayout |
matrix or list. When matrix, should contain two columns x/y for positions of points on 2d map. When list, should contain several matrices as just described. |
color |
list with names. Should contain vectors of items in xylayout. These items will be plotted with the css style determined by names(color) |
highlight.points |
vector of rows in the xylayout that will be plotted with the 'highlight' style |
xypadding |
numeric, determines empty space between points and box |
main |
character, title for the plot |
legend.separate |
logical, set TRUE to create a two-panel display. Highlighted configurations will be labeled as A, B, C in main panel, then explained in the second panel. |
squarexy |
logical, set TRUE to force the scales on x and y axis to be the same (recommended so that euclidean distances on plot correspond to euclidean distances in layout algos) |
label |
logical, TRUE to print names of points |
Rcss |
Rcss object |
Rcssclass |
Rcss class vector |
... |
arguments passed on to plot (e.g. xlab, ylab) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.