Description Usage Arguments Examples

View source: R/13-f-alt-plt-dis-msr.r

this function produces a plot for displaying dissimilarity distances of pairwise subgroups, where dissmiliarity distance is defined by 1 - |intersect(A, B)|/|A|, for any sets A and B and A is the baseline set. The letters represent subgroups defined by the categories of the selected covariates.The vertical axis represents dissimilarity distance. Each column has a letter standing for a subgroup as the baseline for calculating dissimilarity distances. There are two modes of display - one is that subgroup letters are located at the exact dissimilarity distance with different types and colours of points; the other is that lines connected to all the points. The colour of lines or points indicates whether subgroups are from the same covariate or not. The number of types shows how many categories (from the same covariate) are considered as subgroups. The range of dissimilarity distances can be adjusted.

1 2 3 4 5 6 7 8 9 |

`dat` |
a data set |

`covari.sel` |
a vector of indices of covariates |

`mode` |
a value specifying the type of display; either 1 or 2. |

`range.ds` |
a vector specifying the range of the dissimilarity distance |

`font.size` |
a vector specifying the size of labels and text; the first element is for the title; the second is for the x-axis label; the third is for the labels of baseline subgroups; the fourth is for the remaining subgroup labels (except for the baseline subgroup). |

`title` |
a string specifying the main titles. |

`lab.y` |
a string specifying the y-axis label. |

1 2 3 4 5 6 7 8 9 10 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.