Description Usage Arguments Value Examples
Plot a heatmap from a matrix or a data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 | vis.heatmap(
.data,
.title = "Number of shared clonotypes",
.labs = c("Sample", "Sample"),
.legend = "Shared clonotypes",
.na.value = NA,
.text = T,
.scientific = FALSE,
.signif.digits = 4,
.size.text = 4,
.no.legend = F,
.no.labs = F
)
|
.data |
Either a matrix with colnames and rownames specifyed or a data.frame with the first column of strings for row names and other columns stands for values. |
.title |
Main title of the plot. |
.labs |
Labs names. Character vector of length 2 (for naming x-axis and y-axis). |
.legend |
Title for the legend. |
.na.value |
Replace NAs with this values. |
.text |
if T then print |
.scientific |
If T then force show scientific values in the heatmap plot. |
.signif.digits |
Number of significant digits to show. Default - 4. |
.size.text |
Size for the text in the cells of the heatmap, 4 by default. |
.no.legend |
If T than remove the legend from the plot. |
.no.labs |
If T than remove x / y labels names from the plot. |
ggplot object.
1 2 3 4 5 6 7 8 9 | ## Not run:
# Load your data.
load('immdata.rda')
# Perform cloneset overlap by amino acid sequences with V-segments.
imm.av <- repOverlap(immdata, .seq = 'aa', .vgene = T)
# Plot a heatmap.
vis.heatmap(imm.av, .title = 'Immdata - (ave)-intersection')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.