Description Usage Arguments Examples

View source: R/13-d-matrix-overlap-plot-function.r

this function produces a matrix plot for displaying relative proportions of pairwise subgroup overlap, where the relative proportion is defined by |intersect(A, B)|/|A|, for any sets A and B and A is the baseline set. The letters over (and beside) the matrix represent subgroups defined by the categories of the selected covariates. The subgroup letters on the rows are regarded as baseline subgroups for calculating relative overlap proportions. There are two modes of display - one with circles which are placed in the cells, where the size and the colour reflect how large the proportion is; the other with colours filled in the cells, where the colour indicate the level of overlap proportions.

1 2 3 4 5 6 7 | ```
plot_matrix_overlap(
dat,
covari.sel,
mode,
font.size = c(2, 1, 0.8),
title = NULL
)
``` |

`dat` |
a data set |

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

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

`font.size` |
a vector specifying the size of labels and text; the first element is for the title; the second is for the covariates labels. |

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

1 2 3 4 5 6 7 8 9 10 |

SubgrPlots documentation built on Jan. 29, 2020, 5:07 p.m.

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.