Skip to content

Commit 28b059c

Browse files
committed
appa aang katara
1 parent 37e4a00 commit 28b059c

3 files changed

Lines changed: 55 additions & 36 deletions

File tree

01_textmining.Rmd

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ author: "John Little"
44
date: "`r Sys.Date()`"
55
abstract: "SA = algorithmically mapping the emotion or opinion of a text.\n\n"
66
output:
7+
html_notebook: default
78
rmdformats::html_clean:
89
highlight: kate
910
lightbox: TRUE
1011
thumbnails: TRUE
11-
html_notebook: default
1212
---
1313

1414
Find this repository: https://github.com/libjohn/workshop_textmining
@@ -350,9 +350,17 @@ emma_afinn_sentiment
350350
emma_afinn %>%
351351
mutate(word_count = 1:n(),
352352
index = word_count %/% 80) %>%
353-
filter(index == 104) %>%
353+
filter(index == 104) %>%
354+
count(word, sort = TRUE) %>%
355+
with(wordcloud::wordcloud(word, n,
356+
rot.per = .3))
357+
358+
emma_afinn %>%
359+
mutate(word_count = 1:n(),
360+
index = word_count %/% 80) %>%
361+
filter(index == 104) %>%
354362
count(word, sort = TRUE) %>%
355-
wordcloud2(size = .4, shape = 'diamond',
363+
wordcloud2(size = .4, shape = 'diamond',
356364
backgroundColor = "darkseagreen")
357365
358366
```

01_textmining.html

Lines changed: 37 additions & 29 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)