plot_skew_t.RdPlots the skew-t distribution fitted to the resampled test statistics, alongside the "ground truth" test statistic derived from the raw data.
plot_skew_t(sceptre_result, interval = c(-4, 4))output of run_sceptre_gRNA_gene_pair when full_output is set to TRUE
(optional) interval over which the distribution is plotted
a ggplot object
One also can call this function on a given row of the data frame outputted by run_sceptre_in_memory when full_output is set to TRUE.
data(gene_matrix); data(gRNA_matrix); data(covariate_matrix)
gene_expressions <- gene_matrix[1,]
gRNA_expressions <- gRNA_matrix[1,]
# run method
result <- run_sceptre_gRNA_gene_pair(gene_expressions, gRNA_expressions,
covariate_matrix, "left", full_output = TRUE)
#> Error in run_sceptre_gRNA_gene_pair(gene_expressions, gRNA_expressions, covariate_matrix, "left", full_output = TRUE): could not find function "run_sceptre_gRNA_gene_pair"
# plot result
plot_skew_t(result)
#> Error in plot_skew_t(result): could not find function "plot_skew_t"