View source: R/qc_sample_correlation.R
qc_sample_correlation | R Documentation |
A correlation heatmap is created that uses hirachical clustering to determine sample similarity.
qc_sample_correlation(
data,
sample,
grouping,
intensity_log2,
condition,
digestion = NULL,
run_order = NULL,
method = "spearman",
interactive = FALSE
)
data |
a data frame that contains at least the input variables. |
sample |
a character column in the |
grouping |
a character column in the |
intensity_log2 |
a numeric column in the |
condition |
a character or numeric column in the |
digestion |
optional, a character column in the |
run_order |
optional, a character or numeric column in the |
method |
a character value that specifies the method to be used for correlation.
|
interactive |
a logical value that specifies whether the plot should be interactive.
Determines if an interactive or static heatmap should be created using |
A correlation heatmap that compares each sample. The dendrogram is sorted by optimal leaf ordering.
set.seed(123) # Makes example reproducible
# Create example data
data <- create_synthetic_data(
n_proteins = 100,
frac_change = 0.05,
n_replicates = 3,
n_conditions = 2,
method = "effect_random"
)
# Create sample correlation heatmap
qc_sample_correlation(
data = data,
sample = sample,
grouping = peptide,
intensity_log2 = peptide_intensity_missing,
condition = condition
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.