Wordcloud of conference abstracts – FOSS4G Edinburgh

[This article was first published on R – scottishsnow, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

I’m helping run a conference this September – FOSS4GUK. To help promote the event I’ve created a wordcloud of conference abstracts, in R!


The conference is taking place in Edinburgh, Scotland at Dynamic Earth. It’s focused on free and open source software for geospatial (FOSS4G), as such is full stack. Everything from backend databases, ETL, analysis to web publication. Tools featured include QGIS, R, Python, PostGIS, leaflet and many others.

Tickets: https://uk.osgeo.org/foss4guk2019/

Follow on twitter: https://twitter.com/foss4guk

Back to the wordcloud. Working with plain text files, I followed Julia and David’s excellent instructions and then added decoration in GIMP. R script below.


# ----------------------------


f = list.files("~/dir/dir")
abstracts = lapply(f, function(i){
   read_table(paste0("~/dir/dir/", i),
              col_names = F) %>%
      gather(key, word) %>%
      select(-key) %>%
      add_column(author = str_remove(i, ".txt")) %>%
      unnest_tokens(word, word) %>%
abstracts = do.call("rbind.data.frame", abstracts)

    width=1200, height=800, res=150)
par(mar = rep(0, 4))
abstracts %>%
   drop_na() %>%
   filter(!str_detect(word, "[0-9]") &
             word != "e.g") %>%
   count(word) %>%
   with(wordcloud(word, n,
                  random.order = FALSE,
                  max.words = 150,
                  colors = c("#497fbf", "#f49835"),
                  rot.per = 0, fixed.asp = F))

To leave a comment for the author, please follow the link and comment on their blog: R – scottishsnow.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)