... | ... |
@@ -12,6 +12,8 @@ enhance_table( |
12 | 12 |
n_gs = 50, |
13 | 13 |
gs_ids = NULL, |
14 | 14 |
chars_limit = 70, |
15 |
+ plot_style = c("point", "ridgeline"), |
|
16 |
+ ridge_color = c("gs_id", "gs_score"), |
|
15 | 17 |
plot_title = NULL |
16 | 18 |
) |
17 | 19 |
} |
... | ... |
@@ -38,8 +40,16 @@ available in \code{res_enrich}. Lists the gene sets to be displayed.} |
38 | 40 |
\item{chars_limit}{Integer, number of characters to be displayed for each |
39 | 41 |
geneset name.} |
40 | 42 |
|
43 |
+\item{plot_style}{Character value, one of "point" or "ridgeline". Defines the |
|
44 |
+style of the plot to summarize visually the table.} |
|
45 |
+ |
|
46 |
+\item{ridge_color}{Character value, one of "gs_id" or "gs_score", controls the |
|
47 |
+fill color of the ridge lines. If selecting "gs_score", the \code{z_score} column |
|
48 |
+must be present in the enrichment results table - see \code{get_aggrscores()} to do |
|
49 |
+that.} |
|
50 |
+ |
|
41 | 51 |
\item{plot_title}{Character string, used as title for the plot. If left \code{NULL}, |
42 |
-it defaults to a general description of the plot and of the DE contrast} |
|
52 |
+it defaults to a general description of the plot and of the DE contrast.} |
|
43 | 53 |
} |
44 | 54 |
\value{ |
45 | 55 |
A \code{ggplot} object |
... | ... |
@@ -87,4 +97,18 @@ enhance_table(res_enrich, |
87 | 97 |
anno_df, |
88 | 98 |
n_gs = 10 |
89 | 99 |
) |
100 |
+ |
|
101 |
+# using the ridge line as a style, also coloring by the Z score |
|
102 |
+res_enrich_withscores <- get_aggrscores( |
|
103 |
+ res_enrich, |
|
104 |
+ res_de, |
|
105 |
+ anno_df |
|
106 |
+) |
|
107 |
+enhance_table(res_enrich_withscores, |
|
108 |
+ res_de, |
|
109 |
+ anno_df, |
|
110 |
+ n_gs = 10, |
|
111 |
+ plot_style = "ridgeline", |
|
112 |
+ ridge_color = "gs_score" |
|
113 |
+) |
|
90 | 114 |
} |