Description Usage Arguments Details Value See Also Examples
View source: R/correlation-based_diagnostics.R
recommended for heatmap-type visualisation of correlation matrix with <100 items. With >50 samples and ~10 replicate pairs distribution plots may be more informative.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | plot_corr_matrix(
corr_matrix,
annotation = NULL,
annotation_id_col = "FullRunName",
factors_to_plot = NULL,
cluster_rows = FALSE,
cluster_cols = FALSE,
heatmap_color = colorRampPalette(rev(brewer.pal(n = 7, name = "RdYlBu")))(100),
color_list = NULL,
filename = NULL,
width = 7,
height = 7,
units = c("cm", "in", "mm"),
plot_title = NULL,
...
)
|
corr_matrix |
square correlation matrix |
annotation |
data frame with |
annotation_id_col |
|
factors_to_plot |
vector of technical and biological covariates to be
plotted in this diagnostic plot (assumed to be present in
|
cluster_rows |
boolean values determining if rows should be clustered or |
cluster_cols |
boolean values determining if columns should be clustered or |
heatmap_color |
vector of colors used in heatmap. |
color_list |
list, as returned by |
filename |
path where the results are saved. If null the object is returned to the active window; otherwise, the object is save into the file. Currently only pdf and png format is supported |
width |
option determining the output image width |
height |
option determining the output image width |
units |
units: 'cm', 'in' or 'mm' |
plot_title |
title of the plot (e.g., processing step + representation level (fragments, transitions, proteins) + purpose (meanplot/corrplot etc)) |
... |
parameters for the |
Plot correlation of selected samples or peptides
pheatmap
object
pheatmap
,
plot_sample_corr_distribution
,
plot_peptide_corr_distribution
1 2 3 4 | peptides <- c("10231_QDVDVWLWQQEGSSK_2", "10768_RLESELDGLR_2")
data_matrix_sub = example_proteome_matrix[peptides,]
corr_matrix = cor(t(data_matrix_sub), use = 'complete.obs')
corr_matrix_plot <- plot_corr_matrix(corr_matrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.