Description Usage Arguments Value See Also Examples
Feature by feature correlation values between every windows and the reference to window of features are visualized as density lines, one facet per comparison. Two density lines are drown in each facets:
A thin colored line, the correlations between the bin and the reference top bin of features
A thicker blue line with grey error area, the correlations between the bin and the randomized
top bin of features. The lines are not shown if n_random = 0
in correlate_windows
.
1 2 | plot_correlations_distributions(df, metrics = NULL, vlines = c("mean",
"median"), facet_ncol = 4)
|
df |
A |
metrics |
Optional. The output of |
vlines |
A string, either "mean" or "median". Should the dashed line represent the mean or the median
of the correlation coefficient distributions? Ignored if |
facet_ncol |
The number of columns to arrange the plots. |
A ggplot2 plot.
correlations_to_densities
, get_mean_median
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(magrittr)
myData <- scData_hESC %>%
calculate_cvs %>%
define_top_genes(window_size = 100) %>%
bin_scdata(window_size = 1000)
corDistrib <- correlate_windows(myData, n_random = 3)
corDens <- correlations_to_densities(corDistrib)
plot_correlations_distributions(corDens)
metrics <- get_mean_median(corDistrib)
plot_correlations_distributions(corDens, metrics = metrics)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.