chordDiagramFromContingencyTable | R Documentation |
Plot a bipartite chord diagram (circular Sankey diagram with 2 categories) for a contingency matrix the values of two matrices
chordDiagramFromContingencyTable(
contTab,
chordColorByCol = FALSE,
cs_rows = colpal.mu.cat,
cs_columns = colpal.mu.cat,
...
)
contTab |
|
chordColorByCol |
color chords by column instead of by row |
cs_rows |
color scheme to use for the rows of the matrix |
cs_columns |
color scheme to use for the rows of the matrix |
... |
passed on to |
nothing of particular interest (include this function while plotting).
Fabian Mueller
# contingency table of air quality quantile by month
contTab <- with(airquality, table(cut(Temp, quantile(Temp)), Month))
names(dimnames(contTab))[1] <- "quantile"
chordDiagramFromContingencyTable(contTab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.