Skip to content

Commit 1693a40

Browse files
committed
solve NOTE for p-value and FC histogram
1 parent 1184698 commit 1693a40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/pvalue_FC_histogram.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@ pvalue_foldchange_histogram <- function(RES,
2020
D <- data.frame(p = RES[[columnname_p]],
2121
padj = RES[[columnname_padj]],
2222
FC = RES[[columnname_FC]])
23-
24-
pl_hist_p <- ggplot2::ggplot(D, ggplot2::aes(x = p)) +
23+
24+
pl_hist_p <- ggplot2::ggplot(D, ggplot2::aes(x = D[["p"]])) +
2525
ggplot2::geom_histogram(breaks = seq(0,1, 0.05)) +
2626
ggplot2::theme_bw() +
2727
ggplot2::labs(title = "Histogram of p-values",
2828
x = "p-value",
2929
y = "Frequency") +
3030
ggplot2::xlim(0,1)
3131

32-
pl_hist_padj <- ggplot2::ggplot(D, ggplot2::aes(x = padj)) +
32+
pl_hist_padj <- ggplot2::ggplot(D, ggplot2::aes(x = D[["padj"]])) +
3333
ggplot2::geom_histogram(breaks = seq(0,1, 0.05)) +
3434
ggplot2::theme_bw() +
3535
ggplot2::labs(title = "Histogram of p-values",
3636
x = "Adjusted p-value",
3737
y = "Frequency") +
3838
ggplot2::xlim(0,1)
3939

40-
pl_hist_FC <- ggplot2::ggplot(D, ggplot2::aes(x = log2(FC))) +
40+
pl_hist_FC <- ggplot2::ggplot(D, ggplot2::aes(x = log2(D[["FC"]]))) +
4141
ggplot2::geom_histogram() +
4242
ggplot2::theme_bw() +
4343
ggplot2::labs(title = "Histogram of p-values",

0 commit comments

Comments
 (0)