Skip to content

Commit ea7b3cb

Browse files
committed
Added volcano plots to annotate_newsgroups analysis.
1 parent 22828ca commit ea7b3cb

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

analysis/annotate_newsgroups.Rmd

+22
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,25 @@ ggsave("structure_plot_newsgroups_topics.png",p1,
149149
ggsave("structure_plot_other_topics.png",p2,
150150
height = 2,width = 8,dpi = 200,bg = "white")
151151
```
152+
153+
### Annotation of the factors using "distinctive words"
154+
155+
ADD TEXT HERE.
156+
157+
```{r volcano-plot-k1, fig.height=3.5, fig.width=4.5}
158+
volcano_plot(de_le,k = "k1",ymax = 30)
159+
```
160+
161+
ADD MORE TEXT HERE.
162+
163+
```{r more-volcano-plots, fig.height=9, fig.width=7}
164+
plot_grid(volcano_plot(de_le,k = "k3") + guides(color = "none"),
165+
volcano_plot(de_le,k = "k6") + guides(color = "none"),
166+
volcano_plot(de_le,k = "k7",ymax = 30) + guides(color = "none"),
167+
volcano_plot(de_le,k = "k8",ymax = 60) + guides(color = "none"),
168+
volcano_plot(de_le,k = "k9",ymax = 40) + guides(color = "none"),
169+
volcano_plot(de_le,k = "k10",ymax = 40) + guides(color = "none"),
170+
nrow = 3,ncol = 2)
171+
```
172+
173+
TO DO NEXT: Generate "distinctive feature" scatterplots.

analysis/newsgroups_annotate.R

-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
#
22
# TO DO NEXT:
3-
# - Move this code to newsgroups_annotate.Rmd.
43
# - Generate the "effects matrices" (F_le, F_vsnull), that we will analyze.
54
# - Create "distinctive features" scatterplots.
65
# - Design the "effects plot" on paper first (no R code).
76
#
8-
9-
# Volcano plots using "least extreme" LFCs.
10-
p1 <- volcano_plot(de_le,k = "k1",ymax = 30)
11-
p2 <- volcano_plot(de_le,k = "k2",ymax = 100)
12-
p3 <- volcano_plot(de_le,k = "k3")
13-
p5 <- volcano_plot(de_le,k = "k5",ymax = 80)
14-
p6 <- volcano_plot(de_le,k = "k6")
15-
p7 <- volcano_plot(de_le,k = "k7",ymax = 30)
16-
p8 <- volcano_plot(de_le,k = "k8",ymax = 60)
17-
p9 <- volcano_plot(de_le,k = "k9",ymax = 40)
18-
p10 <- volcano_plot(de_le,k = "k10",ymax = 40)

0 commit comments

Comments
 (0)