neuropsychology (version 0.5.0)

braincloud: Draw a brain shaped wordcloud.

Description

Draw a brain shaped wordcloud.

Usage

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.

Examples

Run this code
require(neuropsychology)

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

Run the code above in your browser using DataLab