File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,24 +20,24 @@ pvalue_foldchange_histogram <- function(RES,
20
20
D <- data.frame (p = RES [[columnname_p ]],
21
21
padj = RES [[columnname_padj ]],
22
22
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 " ]] )) +
25
25
ggplot2 :: geom_histogram(breaks = seq(0 ,1 , 0.05 )) +
26
26
ggplot2 :: theme_bw() +
27
27
ggplot2 :: labs(title = " Histogram of p-values" ,
28
28
x = " p-value" ,
29
29
y = " Frequency" ) +
30
30
ggplot2 :: xlim(0 ,1 )
31
31
32
- pl_hist_padj <- ggplot2 :: ggplot(D , ggplot2 :: aes(x = padj )) +
32
+ pl_hist_padj <- ggplot2 :: ggplot(D , ggplot2 :: aes(x = D [[ " padj" ]] )) +
33
33
ggplot2 :: geom_histogram(breaks = seq(0 ,1 , 0.05 )) +
34
34
ggplot2 :: theme_bw() +
35
35
ggplot2 :: labs(title = " Histogram of p-values" ,
36
36
x = " Adjusted p-value" ,
37
37
y = " Frequency" ) +
38
38
ggplot2 :: xlim(0 ,1 )
39
39
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 " ]] ))) +
41
41
ggplot2 :: geom_histogram() +
42
42
ggplot2 :: theme_bw() +
43
43
ggplot2 :: labs(title = " Histogram of p-values" ,
You can’t perform that action at this time.
0 commit comments