{"id":13735893,"url":"https://github.com/jbkunst/d3wordcloud","last_synced_at":"2025-03-20T02:30:52.674Z","repository":{"id":31749136,"uuid":"35315229","full_name":"jbkunst/d3wordcloud","owner":"jbkunst","description":":cloud: htmlwidgets for  D3js Word Cloud Layout","archived":false,"fork":false,"pushed_at":"2016-09-27T18:01:47.000Z","size":8213,"stargazers_count":66,"open_issues_count":5,"forks_count":15,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-28T22:35:41.052Z","etag":null,"topics":["cloud-layout","htmlwidgets","rstats","wordcloud"],"latest_commit_sha":null,"homepage":"http://rpubs.com/jbkunst/133106","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbkunst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-09T04:37:38.000Z","updated_at":"2023-09-21T10:14:51.000Z","dependencies_parsed_at":"2022-08-29T14:01:12.967Z","dependency_job_id":null,"html_url":"https://github.com/jbkunst/d3wordcloud","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbkunst%2Fd3wordcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbkunst%2Fd3wordcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbkunst%2Fd3wordcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbkunst%2Fd3wordcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbkunst","download_url":"https://codeload.github.com/jbkunst/d3wordcloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244041314,"owners_count":20388216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-layout","htmlwidgets","rstats","wordcloud"],"created_at":"2024-08-03T03:01:12.648Z","updated_at":"2025-03-20T02:30:51.947Z","avatar_url":"https://github.com/jbkunst.png","language":"R","readme":"\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\nd3wordcloud\n===========\n\n[![travis-status](https://api.travis-ci.org/jbkunst/d3wordcloud.svg)](https://travis-ci.org/jbkunst/d3wordcloud)\n[![version](http://www.r-pkg.org/badges/version/d3wordcloud)](http://www.r-pkg.org/pkg/d3wordcloud)\n[![downloads](http://cranlogs.r-pkg.org/badges/d3wordcloud)](http://www.r-pkg.org/pkg/d3wordcloud)\n\nWhat is it?\n-----------\n\nd3wordcloud is a wrapper for the [Word Cloud\nLayout](http://www.jasondavies.com/wordcloud) by [Jason\nDavies](http://www.jasondavies.com) based on\n[htmlwidgets](https://github.com/ramnathv/htmlwidgets).\n\nHow it works?!\n--------------\n\nThe main function `d3wordcloud` needs only `words` and `freqs`. Just\nlike the old good wordcloud package. See demo\n[here](http://r-shiny-apps.jkunst.com/d3wordcloud/).\n\n    library(\"d3wordcloud\")\n    words \u003c- c(\"I\", \"love\", \"this\", \"package\", \"but\", \"I\", \"don't\", \"like\", \"use\", \"wordclouds\")\n    freqs \u003c- sample(seq(length(words)))\n\n    d3wordcloud(words, freqs)\n\nHow can you get it?\n-------------------\n\nI know! you already know how to install it\n\n    devtools::install_github(\"jbkunst/d3wordcloud\")\n\nParameters\n----------\n\nThere are parameter for make your word cloud like you like/want:\n\n-   `words`: The words\n-   `freqs`: Their frequencies\n-   `padding`: The separation between words. Default value is `0`.\n-   `colors`: The color for wordcloud, if the length of words, and\n    colors are the same, then each word will have its own color, in\n    other case a grandien between the colors is generated (the order is\n    important here).\n-   `size.scale`: The scale to use for scale the words sizes (`freqs`).\n    Options are `linear`, `sqrt` and `log`. Default value is `linear`.\n-   `color.scale`: The scale to use for scale the colors according to\n    sizes (`freqs`). Options are `linear`, `sqrt` and `log`. Default\n    value is `linear`.\n-   `font`: The font to use in thw the word cloud. Default value is\n    `Open Sans`.\n-   `spiral`: The way to construct the wordcloud. Options are\n    `archimedean` and `rectangular`. Default value is `archimedean`.\n-   `rotate.min`: Minimum angle for (random) rotation. Default value is\n    `-30`.\n-   `rotate.max`: Maximum angle for (random) rotation. Default value is\n    `30`.\n-   `tooltip`: Do you want tooltips showing the frequecny on cursor hover? ;)\n-   `label`: Alternate text for tooltip to display.\n-   `rangesizefont` A 2 length numeric vector indicating the size of text (this is usefull if you have sentences instead of words).\n\nYou can see this parameter in action here\n\u003chttp://rpubs.com/jbkunst/133106\u003e.\n\nDemo\n----\n\nCheck here \u003chttps://jbkunst.shinyapps.io/d3wordcloud\u003e.\n\nSometimes I exceed the hours on the basic plan in shiniapps.io. You can\nalways can view here: \u003chttp://rpubs.com/jbkunst/133106\u003e.\n\nAn old demo gif:\n\n![shinyappdemo](extras/d2wordcloud_demo.gif)\n\nReferences\n----------\n\n-   [Word Cloud Layout](http://www.jasondavies.com/wordcloud) by [Jason\n    Davies](http://www.jasondavies.com).\n\nSimilar packages\n----------------\n\n-   [rWordCloud](https://github.com/adymimos/rWordCloud). A package with\n    similar functionalities.\n\nRecommendations\n---------------\n\n-   Always have the [latest version of\n    packages](https://github.com/ramnathv/htmlwidgets/issues/100).\n","funding_links":[],"categories":["R","Visualization"],"sub_categories":["Word Cloud"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbkunst%2Fd3wordcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbkunst%2Fd3wordcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbkunst%2Fd3wordcloud/lists"}