braincloud: Draw a brain shaped wordcloud.

Description Usage Arguments Value Author(s) Examples

Description

Draw a brain shaped wordcloud.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
braincloud(pdf.file=".",
            words=NULL,
            frequency=NULL,
            word.length.min=4,
            word.length.max=Inf,
            freq.min=10,
            freq.max=Inf,
            image="brain1",
            text.size=0.5,
            colours="neuropsychology",
            colours.replicate=TRUE)

Arguments

pdf.file

Either the name of a file (ending with ".pdf"), a directory or nothing to scrap all the PDFs from the directory.

words

A vector of words.

frequency

A length-equal frequency vector.

word.length.min

Keep only words with minimum length x.

word.length.max

Keep only words with maximum length x.

freq.min

Keep only words that appear more than x times.

freq.max

Keep only words that appear less than x times.

image

NULL or "brain1", "brain2", "head1", "head2".

text.size

Adjust the text size.

colours

colour of the words. A vector of HEX colours or the following: "random-dark", "random-light" or "neuropsychology" for a material design palette (default).

colours.replicate

Should it replicate the length of the colours vector to match the length of the data? If FALSE and length of the colours vector shorter than the length of the data, the words left will appear black.

Value

cloud

A wordcloud. Better to click on "show in new window" in RStudio.

Author(s)

Dominique Makowski

Examples

1
2
3
require(neuropsychology)

braincloud(words=c("here", "is", "some", "random", "words"))

neuropsychology documentation built on May 2, 2019, 2:13 p.m.