Uses R 4.4.1 (wordcloud2 does not work well in R 4.4.0)
Websites for Wordclouds
Packages
Before importing, you should save your file as UNICODE UTF-8 or else you need to replace fancy punctuation yourself (using select, search, replace with simple, or space). This is perhaps easiest to do in a generic text editor like Notepad. For example: * fancy quote marks (fancy “ ” or ’ ’) * fancy en and em dashes (fancy – or —) * fancy ellipsis (fancy …) * fancy list characters (bullet lists) * and anything else fancy Also, it is easiest to remove URL (web links) yourself. Also, file must end with a blank line.
This file was imported after saving in Word as UNICODE UTF-8
TDM is a Table of counts
Some words end up being too long (too many letters). You can remove such words with smaller maxLength
You can change minimum number of times for a word to be included with minFreq
You can change the total number of words in the cloud with maxTerms
You can increase number of bars with maxBars (but 20 is a good max for bar chart)
## [1] "mother" "children" "can" "like" "roles"
## [6] "time" "even" "academic" "away" "emotional"
## [11] "feel" "balance" "role" "constantly" "student"
## [16] "woman" "future" "help" "phd" "physically"
## mother children can like roles time even
## 16 15 9 8 8 8 7
## academic away emotional feel balance role constantly
## 6 6 6 6 5 5 5
## student woman future help phd physically present
## 5 5 4 4 4 4 4
## pursuing try don kids
## 4 4 4 4
## mother children can
## 16 15 9
## [1] "academic" "away" "balance" "children" "emotional"
## [6] "future" "help" "like" "mother" "phd"
## [11] "physically" "present" "pursuing" "role" "roles"
## [16] "try" "can" "constantly" "don" "even"
## [21] "feel" "kids" "student" "time" "woman"
## $mother
## phd pursuing academic emotional challenges parent past
## 0.91 0.91 0.89 0.86 0.77 0.77 0.77
## virtual year family like role
## 0.77 0.77 0.77 0.76 0.71
##
## $children
## academic emotional future phd physically present pursuing
## 0.91 0.79 0.77 0.77 0.77 0.77 0.77
## heavily one seen strength toll challenges faith
## 0.75 0.74 0.74 0.74 0.74 0.73 0.73
## guilt incredibly parent past role virtual year
## 0.73 0.73 0.73 0.73 0.73 0.73 0.73
## like
## 0.72
##
## $can
## woman feel like even balance don
## 0.93 0.91 0.88 0.87 0.80 0.79
## hard manage work creates going makes
## 0.79 0.79 0.79 0.77 0.77 0.77
## pressures sacrificing academic create higher expectations
## 0.77 0.77 0.73 0.70 0.70 0.70
## find perfect
## 0.70 0.70
Wordcloud shows up in PLOTS output tab
Change myScale to make it fit better in the window
## png
## 2
BEWARE sometimes words do NOT fit and they are excluded… PAY ATTENTION
These show up in VIEWER output tab
## word freq
## mother mother 16
## children children 15
## can can 9
## like like 8
## roles roles 8
## time time 8
## word freq
## mother mother 17
## children children 15
## role role 13
## time time 10
## feel feel 9
## can can 9
Lower frequency words in the middle
webshot::install_phantomjs()
#---
htmlwidgets::saveWidget(starcloud, "starcloud.html", selfcontained = F)
#---
webshot::webshot("starcloud.html", "starcloud.png", vwidth = 800, vheight = 800, delay = 5)
#---
webshot::webshot("starcloud.html", "starcloud.pdf", vwidth = 800, vheight = 800, delay = 5)
Sometimes need to run this 3-4 times to get it to work… and sometimes never works…
wordcloud2::letterCloud(df, word="MW", size=0.8)
Sometimes need to run these 3-4 times to get them to work… and seomtimes never works…
figFile <- "pumpkin.png"
wordcloud2::wordcloud2(dfALL, figPath = figFile, size = 1, color = 'darkorange')
These show up in PLOTS output tab
## # A tibble: 6 × 2
## num text
## <int> <chr>
## 1 1 "as a mother my experience as a virtual parent this past year has been …
## 2 2 ""
## 3 3 "as a single mother being a virtual parent this past year has been noth…
## 4 4 ""
## 5 5 "being a virtual parent for the past year has been an emotional rollerc…
## 6 6 ""
## # A tibble: 945 × 2
## bigram n
## <chr> <int>
## 1 i m 18
## 2 my children 13
## 3 as a 9
## 4 being a 9
## 5 has been 8
## 6 i can 8
## 7 like i 8
## 8 that i 8
## 9 a mother 7
## 10 can t 7
## # ℹ 935 more rows
## # A tibble: 6 × 2
## bigram n
## <chr> <int>
## 1 single mother 3
## 2 video calls 3
## 3 virtual parent 3
## 4 cultural expectations 2
## 5 emotional toll 2
## 6 mother makes 2
## # A tibble: 6 × 3
## word1 word2 n
## <chr> <chr> <int>
## 1 single mother 3
## 2 video calls 3
## 3 virtual parent 3
## 4 cultural expectations 2
## 5 emotional toll 2
## 6 mother makes 2
## png
## 2
Open files in a subfolder
## png
## 2
Open files in a subfolder
## png
## 2