8000 Load scales in a visible chunk. Closes #71. · codingbooks/tidy-text-mining@54b8cac · GitHub
[go: up one dir, main page]

Skip to content

Commit 54b8cac

Browse files
committed
Load scales in a visible chunk. Closes juliasilge#71.
1 parent ac93c3f commit 54b8cac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

06-topic-models.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ assignments
340340
This combination of the true book (`title`) and the book assigned to it (`consensus`) is useful for further exploration. We can, for example, visualize a **confusion matrix**, showing how often words from one book were assigned to another, using dplyr's `count()` and ggplot2's `geom_tile` (Figure \@ref(fig:confusionmatrix).
341341

342342
```{r confusionmatrix, dependson = "assignments2", fig.width = 10, fig.height = 8, fig.cap = "Confusion matrix showing where LDA assigned the words from each book. Each row of this table represents the true book each word came from, and each column represents what book it was assigned to."}
343+
library(scales)
344+
343345
assignments %>%
344346
count(title, consensus, wt = count) %>%
345347
group_by(title) %>%

0 commit comments

Comments
 (0)
0