Giter Club home page Giter Club logo

wordcloud's Introduction

wordcloud

Functionality to create pretty word clouds, visualize differences and similarity between documents, and avoid over-plotting in scatter plots with text.

Usage

See: http://blog.fellstat.com/?cat=11

Building and installing

Get the released version from CRAN:

install.packages("wordcloud")

To build from this repository

R CMD build wordcloud
R CMD INSTALL wordcloud_*.*.tar.gz

Or simply

# install.packages("devtools")
devtools::install_github("ifellows/wordcloud")

wordcloud's People

Contributors

ifellows avatar jaycebb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

wordcloud's Issues

Error in textplot (wordlayout) when plotting only 1 point

When I try to plot only 1 point, the following error message appears:
Error in if (sdx == 0) sdx <- 1 : missing value where TRUE/FALSE needed

The issue relies in the wordlayout functions, when computing the standard deviation:
sdx <- sd(x, na.rm = TRUE)
sdy <- sd(y, na.rm = TRUE)
If x and y refer to only 1 point, sdx and sdy result in NA and this causes the above error message.

Steps to reproduce the issue:
library(wordcloud)
df = data.frame(id = 'sample', x = 0.2, y = 0.4)
plot(x = df$x, y = df$y)
textplot(x = df$x, y = df$y, words = df$id, new = F)

Informations about system:
OS: Debian 9.3 - linux-image-4.9.0-5-amd64
R version 3.4.3 (CRAN Repository)

How to contribute?

It doesn't seem like this is the place to contribute updates to the wordcloud package. Is there a way for anyone to contribute to the package?

The only thing I've found so far is confusing behavior in the wordcloud function when min.freq is greater that max(freq). In that case, it shows all words, but doesn't tell you that your minimum frequency is greater than the max frequency, and it's showing all words.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.