Description Usage Arguments Details Value Examples
Plots a matrix of D statistics, output from dwrapper, as a heatmap.
1 2 |
d_matrix |
A matrix of D statistics or a matrix of D statistic ratios. |
colors |
An optional color vector. Optionally modify the color scheme of the heatmap. If mode = 'binned', must be of length 5. |
mode |
A string indicating desired coloring scheme. The option "linear" scales colors linearly, "truncated" truncates values greater than 1, and "binned" returns a discretedistribution of colors. |
tick.labels |
A logical indicating whether or not marker labels should be drawn. |
nbins |
An integer specifying the number of bins to be used. Only relevent if mode is "binned". |
The d_matrix input should be one of the matrices output by dwrapper. Options are d2it_mat, d2is_mat, d2st_mat, dp2st_mat, dp2is_mat, npops_mat, ratio1, and ratio2. More customized plots can be developed using the "levelplot" package.
A color plot
1 2 3 4 5 6 7 8 9 10 11 | data(miyashita_langley_data)
miyashita_langley_subset <- miyashita_langley_data[,1:15]
ml_results <- dwrapper(miyashita_langley_subset)
dheatmap(ml_results[["d2it_mat"]], mode = 'linear')
## Not run:
data(miyashita_langley_data)
ml_results <- dwrapper(miyashita_langley_data)
dheatmap(ml_results[["d2it_mat"]], mode = 'linear')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.