Skip to content
Snippets Groups Projects
Commit 78bb8521 authored by Arnaud Duvermy's avatar Arnaud Duvermy
Browse files

modif identity plot & disp_plot

parent d6bd2792
No related branches found
No related tags found
No related merge requests found
...@@ -21,8 +21,7 @@ ...@@ -21,8 +21,7 @@
#' } #' }
evaluateDispersion <- function(TMB_dispersion_df, DESEQ_dispersion_df, color2use) { evaluateDispersion <- function(TMB_dispersion_df, DESEQ_dispersion_df, color2use) {
disp_comparison_dtf <- rbind(TMB_dispersion_df, DESEQ_dispersion_df) disp_comparison_dtf <- rbind(TMB_dispersion_df, DESEQ_dispersion_df)
disp_plot <- dispersion_plot(disp_comparison_dtf, col = "from") + ggplot2::scale_color_manual(values = color2use) disp_plot <- dispersion_plot(disp_comparison_dtf, col = "from", pch = "from") + ggplot2::scale_color_manual(values = color2use)
return(list(disp_plot = disp_plot, data = disp_comparison_dtf)) return(list(disp_plot = disp_plot, data = disp_comparison_dtf))
} }
......
...@@ -24,7 +24,7 @@ identity_plot <- function(comparison_df, ...){ ...@@ -24,7 +24,7 @@ identity_plot <- function(comparison_df, ...){
ggplot2::ggplot(comparison_df) + ggplot2::ggplot(comparison_df) +
ggplot2::geom_point(ggplot2::aes(x = actual, y = estimate, !!!args), alpha = 0.6) + ggplot2::geom_point(ggplot2::aes(x = actual, y = estimate, !!!args), alpha = 0.6, size = 2) +
ggplot2::geom_abline(intercept = 0, slope = 1, lty = 3, col = 'red', linewidth = 1) + ggplot2::geom_abline(intercept = 0, slope = 1, lty = 3, col = 'red', linewidth = 1) +
ggplot2::facet_wrap(~description, scales = "free") + ggplot2::facet_wrap(~description, scales = "free") +
ggplot2::theme_bw() + ggplot2::theme_bw() +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment