Skip to content

Commit a46c4d9

Browse files
committed
Rebuild with PNG
1 parent 9755c23 commit a46c4d9

File tree

64 files changed

+49
-69053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+49
-69053
lines changed

_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/_index.en.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ You can not only see the R commands but execute them yourself if you [download t
1717
Contributions in the form of feedback, comments, code, and bug reports are most welcome. If you have questions on how to use **quanteda**, please post them to [the quanteda channel on StackOverflow](https://stackoverflow.com/questions/tagged/quanteda). If you find a bug, please report it to the [quanteda issues](https://github.com/quanteda/quanteda/issues). *We prefer these platforms to emails in communicating with our users* because the records will help other users who have similar problems.
1818

1919
{{% notice info %}}
20-
Examples in this tutorial are written for **quanteda** version 1.3.0. Please check if you have the same version installed by a command `packageVersion('quanteda')`.
20+
Examples in this tutorial are written for **quanteda** version 1.3.4. Please check if you have the same version installed by a command `packageVersion('quanteda')`.
2121
{{% /notice %}}

content/advanced-operations/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/advanced-operations/targeted-dictionary-analysis.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ axis(1, seq_len(ndoc(eu_lsd_dfm)), ymd("2016-01-01") + weeks(seq_len(ndoc(eu_lsd
9393
legend('topleft', col = 1:2, legend = c('Negative', 'Positive'), lty = 1, bg = 'white')
9494
```
9595

96-
<img src="/advanced-operations/targeted-dictionary-analysis_files/figure-html/unnamed-chunk-6-1.svg" width="768" />
96+
<img src="/advanced-operations/targeted-dictionary-analysis_files/figure-html/unnamed-chunk-6-1.png" width="672" />
9797

9898

9999
```r
@@ -105,7 +105,7 @@ grid()
105105
abline(h = 0, lty = 2)
106106
```
107107

108-
<img src="/advanced-operations/targeted-dictionary-analysis_files/figure-html/unnamed-chunk-7-1.svg" width="768" />
108+
<img src="/advanced-operations/targeted-dictionary-analysis_files/figure-html/unnamed-chunk-7-1.png" width="672" />
109109

110110
### Immigration
111111

@@ -122,7 +122,7 @@ axis(1, seq_len(ndoc(immig_lsd_dfm)), ymd("2016-01-01") + weeks(seq_len(ndoc(imm
122122
legend('topleft', col = 1:2, legend = c('Negative', 'Positive'), lty = 1, bg = 'white')
123123
```
124124

125-
<img src="/advanced-operations/targeted-dictionary-analysis_files/figure-html/unnamed-chunk-8-1.svg" width="768" />
125+
<img src="/advanced-operations/targeted-dictionary-analysis_files/figure-html/unnamed-chunk-8-1.png" width="672" />
126126

127127

128128
```r
@@ -134,5 +134,5 @@ grid()
134134
abline(h = 0, lty = 2)
135135
```
136136

137-
<img src="/advanced-operations/targeted-dictionary-analysis_files/figure-html/unnamed-chunk-9-1.svg" width="768" />
137+
<img src="/advanced-operations/targeted-dictionary-analysis_files/figure-html/unnamed-chunk-9-1.png" width="672" />
138138

content/advanced-operations/twitter-user-similarity.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ user_clust <- hclust(user_dist)
8484
plot(user_clust, labels = FALSE)
8585
```
8686

87-
<img src="/advanced-operations/twitter-user-similarity_files/figure-html/unnamed-chunk-8-1.svg" width="768" />
87+
<img src="/advanced-operations/twitter-user-similarity_files/figure-html/unnamed-chunk-8-1.png" width="672" />
8888

content/basic-operations/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/basic-operations/corpus/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/basic-operations/corpus/corpus.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ summary(immig_corp)
4747
## UKIP 346 723 27 UKIP
4848
##
4949
## Source: /home/kohei/packages/quanteda_tutorials/content/basic-operations/corpus/* on x86_64 by kohei
50-
## Created: Wed Jun 20 09:27:26 2018
50+
## Created: Mon Jul 16 22:49:26 2018
5151
## Notes:
5252
```
5353

@@ -86,7 +86,7 @@ summary(inaug_corp, 5)
8686
## inaugCorpus.csv.5 804 2381 45 1805 Jefferson Thomas
8787
##
8888
## Source: /home/kohei/packages/quanteda_tutorials/content/basic-operations/corpus/* on x86_64 by kohei
89-
## Created: Wed Jun 20 09:27:27 2018
89+
## Created: Mon Jul 16 22:49:26 2018
9090
## Notes:
9191
```
9292

@@ -112,7 +112,7 @@ summary(inaug_corp, 5)
112112
## 1805 Thomas Jefferson 804 2381 45 1805 Jefferson Thomas
113113
##
114114
## Source: /home/kohei/packages/quanteda_tutorials/content/basic-operations/corpus/* on x86_64 by kohei
115-
## Created: Wed Jun 20 09:27:27 2018
115+
## Created: Mon Jul 16 22:49:26 2018
116116
## Notes:
117117
```
118118

content/basic-operations/dfm/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/basic-operations/fcm/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/basic-operations/fcm/fcm.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ size <- log(colSums(dfm_select(news_dfm, feat)))
7878
textplot_network(news_fcm, min_freq = 0.8, vertex_size = size / max(size) * 3)
7979
```
8080

81-
<img src="/basic-operations/fcm/fcm_files/figure-html/unnamed-chunk-7-1.svg" width="768" />
81+
<img src="/basic-operations/fcm/fcm_files/figure-html/unnamed-chunk-7-1.png" width="672" />
8282

content/basic-operations/tokens/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/import-data/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/introduction/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/language-specific/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/language-specific/korean.Rmarkdown

Lines changed: 0 additions & 61 deletions
This file was deleted.

content/language-specific/korean.markdown

Lines changed: 0 additions & 99 deletions
This file was deleted.

content/machine-learning/_output.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

content/machine-learning/ca.en.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ca <- dfm(corp, remove_punct = TRUE, remove = stopwords('en')) %>% textmodel_ca(
2929
textplot_scale1d(ca)
3030
```
3131

32-
<img src="/machine-learning/ca.en_files/figure-html/unnamed-chunk-3-1.svg" width="768" />
32+
<img src="/machine-learning/ca.en_files/figure-html/unnamed-chunk-3-1.png" width="672" />
3333

3434
If you want to plot documents on multi-dimensional scale, you use `coef()` to obtain coordinates of lower dimensions.
3535

@@ -56,5 +56,5 @@ grid()
5656
text(ca_data$dim1, ca_data$dim2, labels = rownames(ca_data), cex = 0.8, col = rgb(0, 0, 0, 0.7))
5757
```
5858

59-
<img src="/machine-learning/ca.en_files/figure-html/unnamed-chunk-4-1.svg" width="672" />
59+
<img src="/machine-learning/ca.en_files/figure-html/unnamed-chunk-4-1.png" width="672" />
6060

content/machine-learning/topicmodel.en.markdown

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,28 @@ terms(lda, 10)
6161
```
6262

6363
```
64-
## Topic 1 Topic 2 Topic 3 Topic 4 Topic 5
65-
## [1,] "obama" "oil" "violence" "doctors" "corbyn"
66-
## [2,] "shooting" "markets" "australian" "nhs" "apple"
67-
## [3,] "black" "labor" "australia" "hospital" "game"
68-
## [4,] "china" "sales" "officers" "drug" "google"
69-
## [5,] "church" "prices" "sexual" "medical" "leadership"
70-
## [6,] "shot" "climate" "prison" "junior" "jeremy"
71-
## [7,] "fbi" "turnbull" "abuse" "drugs" "shadow"
72-
## [8,] "chinese" "banks" "cases" "patients" "users"
73-
## [9,] "nuclear" "energy" "criminal" "contract" "games"
74-
## [10,] "america" "investors" "trial" "steel" "technology"
75-
## Topic 6 Topic 7 Topic 8 Topic 9 Topic 10
76-
## [1,] "clinton" "refugees" "water" "brussels" "budget"
77-
## [2,] "sanders" "syria" "parties" "johnson" "funding"
78-
## [3,] "cruz" "isis" "residents" "talks" "food"
79-
## [4,] "hillary" "syrian" "parents" "boris" "housing"
80-
## [5,] "trump's" "un" "votes" "19" "income"
81-
## [6,] "bernie" "turkey" "voting" "benefits" "education"
82-
## [7,] "senator" "islamic" "baby" "french" "cuts"
83-
## [8,] "ted" "aid" "homes" "summit" "spending"
84-
## [9,] "rubio" "khan" "town" "cabinet" "development"
85-
## [10,] "obama" "forces" "air" "negotiations" "osborne"
64+
## Topic 1 Topic 2 Topic 3 Topic 4 Topic 5
65+
## [1,] "violence" "australia" "climate" "oil" "apple"
66+
## [2,] "senate" "australian" "energy" "markets" "game"
67+
## [3,] "education" "funding" "water" "sales" "users"
68+
## [4,] "girls" "development" "housing" "prices" "google"
69+
## [5,] "schools" "food" "gas" "shares" "facebook"
70+
## [6,] "labor" "businesses" "homes" "investors" "hospital"
71+
## [7,] "gun" "aid" "khan" "trading" "games"
72+
## [8,] "marriage" "offshore" "average" "banks" "phone"
73+
## [9,] "laws" "fund" "emissions" "rates" "music"
74+
## [10,] "australia" "sector" "property" "quarter" "chinese"
75+
## Topic 6 Topic 7 Topic 8 Topic 9 Topic 10
76+
## [1,] "turnbull" "officers" "corbyn" "clinton" "syria"
77+
## [2,] "budget" "prison" "refugees" "sanders" "isis"
78+
## [3,] "brussels" "drug" "johnson" "cruz" "military"
79+
## [4,] "19" "sexual" "jeremy" "hillary" "syrian"
80+
## [5,] "labor" "abuse" "doctors" "obama" "islamic"
81+
## [6,] "benefits" "child" "boris" "trump's" "forces"
82+
## [7,] "talks" "drugs" "leadership" "bernie" "un"
83+
## [8,] "summit" "cases" "tory" "ted" "russian"
84+
## [9,] "photograph" "criminal" "shadow" "rubio" "muslim"
85+
## [10,] "english" "trial" "junior" "senator" "peace"
8686
```
8787

8888
You can then obtain the most likely topics using `topics()` and save them as a document-level variable.
@@ -95,13 +95,13 @@ head(topics(lda), 20)
9595

9696
```
9797
## text136751 text136585 text139163 text169133 text153451 text163885
98-
## 3 8 5 1 3 5
98+
## 3 8 2 10 7 3
9999
## text157885 text173244 text137394 text169408 text184646 text127410
100-
## 6 7 8 8 9 1
100+
## 9 3 1 5 8 7
101101
## text134923 text169695 text147917 text157535 text177078 text174393
102-
## 9 2 5 2 10 6
102+
## 8 4 5 3 3 9
103103
## text181782 text143323
104-
## 8 10
104+
## 5 8
105105
```
106106

107107
{{% notice info %}}

content/machine-learning/wordfish.en.Rmarkdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ textplot_scale1d(wf, doclabels = doclab, groups = docvars(irish_dfm, "party"))
3434

3535
Finally, we can plot the estimated word positions and highlight certain features.
3636

37-
```{r}
37+
```{r, dev="png"}
3838
textplot_scale1d(wf, margin = "features",
3939
highlighted = c("government", "global", "children",
4040
"bank", "economy", "the", "citizenship",

0 commit comments

Comments
 (0)