{"id":18430161,"url":"https://github.com/friendly/statquotes","last_synced_at":"2025-04-13T22:41:59.301Z","repository":{"id":10872277,"uuid":"67135417","full_name":"friendly/statquotes","owner":"friendly","description":"An R package for quotes on statistics, data visualization and science","archived":false,"fork":false,"pushed_at":"2025-02-14T04:05:44.000Z","size":5520,"stargazers_count":15,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-14T05:20:02.242Z","etag":null,"topics":["data-visualization","quotation","quotes","statistics"],"latest_commit_sha":null,"homepage":"https://friendly.github.io/statquotes/","language":"TeX","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/friendly.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-01T13:51:28.000Z","updated_at":"2025-02-14T04:05:48.000Z","dependencies_parsed_at":"2024-06-27T21:44:47.808Z","dependency_job_id":"d2cd6957-f03c-4202-a331-b076bb496703","html_url":"https://github.com/friendly/statquotes","commit_stats":{"total_commits":228,"total_committers":5,"mean_commits":45.6,"dds":"0.42543859649122806","last_synced_commit":"0c7614084a898476db7b2cb163d0433f1887e36a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendly%2Fstatquotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendly%2Fstatquotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendly%2Fstatquotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendly%2Fstatquotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friendly","download_url":"https://codeload.github.com/friendly/statquotes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794565,"owners_count":21162613,"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":["data-visualization","quotation","quotes","statistics"],"created_at":"2024-11-06T05:19:46.700Z","updated_at":"2025-04-13T22:41:59.111Z","avatar_url":"https://github.com/friendly.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- badges: start --\u003e\n\n[![CRAN status](https://www.r-pkg.org/badges/version/statquotes)](https://CRAN.R-project.org/package=statquotes)\n[![](http://cranlogs.r-pkg.org/badges/grand-total/statquotes)](https://cran.r-project.org/package=statquotes)\n[![Project Status: Active](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) \n[![Dependencies](https://tinyverse.netlify.com/badge/statquotes)](https://cran.r-project.org/package=statquotes)\n[![Travis-CI Build Status](https://travis-ci.org/friendly/statquotes.svg?branch=master)](https://travis-ci.org/friendly/statquotes) \n[![Last Commit](https://img.shields.io/github/last-commit/friendly/statquotes)](https://github.com/friendly/statquotes)\n\n\u003c!-- badges: end --\u003e\n\n\n# statquotes v. 0.3.2 \u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"200px\" /\u003e\n**Quotes on statistics, data visualization and science**\n\nThis package displays a randomly chosen quotation about topics related to statistics, data visualization and science, or can be used to search for quotes within the statquotes database for key term tags or authors.\n\nThe original idea came from the Unix [`fortune`](https://en.wikipedia.org/wiki/Fortune_(Unix)) program, used to display a \"fortune\" at startup and contained some bits of wisdom, together with obscure jokes about computer science and computer programming.\n\nThe [`fortunes`](https://cran.r-project.org/package=fortunes) \npackage is focused on quotes about R, largely gleaned from the [R-help](https://stat.ethz.ch/mailman/listinfo/r-help) mailing list, and\ncollected in a [vignette](https://cran.r-project.org/web/packages/fortunes/vignettes/fortunes.pdf).\n\nThe `statquotes` package is focused on quotes about data analysis, visualization and science. It can be used to find quotes when writing about these topics.\n\nIn this R package, \n\n* each call to `statquote()` displays a randomly selected quotation, or, \n* via `search_quotes()` restricted to those whose `tags` field matches the `tag` argument, or whose `source` field matches the `source=` argument. \n\nQuotes can be displayed in the R console, or formatted as markdown or LaTeX (for use with the [epigraph](https://ctan.org/pkg/epigraph) package).\n\n### Installation\n\nThe released CRAN version can be installed via:\n\n```\ninstall.packages(\"statquotes\")\n```\n\nThe development version can be installed via:\n```\ndevtools::install_github(\"friendly/statquotes\")\n```\n\nPlease report any problems or bugs at https://github.com/friendly/statquotes/issues.\n\n### Examples\n\n```\n\u003e library(statquotes)\n\u003e statquote()\n\nThe best thing about being a statistician is that you get to play in everyone's backyard. \n--- John W. Tukey \n\n\u003e statquote(\"boggle\") # or statquote(pattern=\"boggle\")\n\nThe statistician has no magic touch by which he may come in at the stage of\ntabulation and make something of nothing. Neither will his advice, however wise in\nthe early stages of a study, ensure successful execution and conclusion. Many a\nstudy, launched on the ways of elegant statistical design, later boggled in\nexecution, ends up with results to which the theory of probability can contribute\nlittle.\n--- W. Edwards Deming, Principles of Professional Statistical Practice. Annals of\nMathematical Statistics, 36(6), 1883. (1965)\n\n\u003e statquote(source=\"Tukey\") # Choose a random quote from a specific author\n\nWhatever the data, we can try to gain understanding by straightening or by flattening. When we\nsucceed in doing one or both, we almost always see more clearly what is going on.\n--- John Tukey, Exploratory Data Analysis, p. 148.\n\n\u003e quote_tags() # list all tags\n\n [1] \"anova\"               \"assumptions\"         \"averages\"            \"bayesian\"           \n [5] \"biometry\"            \"Box quotes\"          \"computing\"           \"correlation\"        \n [9] \"counts\"              \"data\"                \"data analysis\"       \"data visualization\" \n[13] \"design\"              \"eda\"                 \"ellipses\"            \"ethics\"             \n[17] \"experimental design\" \"expt design\"         \"generalizations\"     \"geometry\"           \n[21] \"history\"             \"knowledge\"           \"lsmeans\"             \"milestones\"         \n[25] \"models\"              \"nhst\"                \"normality\"           \"numeracy\"           \n[29] \"outliers\"            \"p-values\"            \"pictures\"            \"power\"              \n[33] \"probability\"         \"random numbers\"      \"research\"            \"reviews\"            \n[37] \"sample size\"         \"sampling\"            \"science\"             \"significance\"       \n[41] \"skewness\"            \"statistician\"        \"statisticians\"       \"statistics\"         \n[45] \"tables\"              \"teaching\"            \"tidy data\"           \"time\"               \n[49] \"time series\"         \"uncertainty\"         \"vision\"   \n\n\n\u003e statquote(tag=\"numeracy\") # choose a random quote with a specific tag\n\nTo be numerate means to be competent, confident, and comfortable with one’s judgements on whether\nto use mathematics in a particular situation and if so, what mathematics to use, how to do it,\nwhat degree of accuracy is appropriate, and what the answer means in relation to the context.\n--- Diana Coben, Numeracy, mathematics and adult learning, 2000\n\n# To find all quotes with a particular word:\n\u003e search_quotes(\"lsmeans\")\n\nSome of us feel that type III sum of squares and so-called LS-means are statistical\nnonsense which should have been left in SAS.\n--- Brian Ripley, Discussing features of S-Plus, S-news 5.29.1999\n\nI think it would be interesting to ask people who use the results from LSMEANS to explain\nwhat the results represent. My guess is that less than 1% of the people who use LSMEANS\nknow what they in fact are.\n--- Doug Bates, R-help mailing list, 16 Oct 2003\n```\n\n### Output formats\n\nQuotes have class `\"statquote\"`. The `print.statquote()` method gives a plain text format for the console.\nThis method has an argument, `cite = TRUE`, which appends the citation information to the source.\n\n```\nR\u003e statquote(\"eulogy\")\n\nOne is so much less than two. [John Tukey's eulogy of his wife.]\n--- John Tukey, The life and professional contributions of John W. Tukey, The Annals of\nStatistics, 2001, Vol 30, p. 46.\n```\n\nUse `as.markdown()` for markdown-formatted quotes:\n\n```\nR\u003e cat(as.markdown(statquote(\"eulogy\")))\n\u003e *One is so much less than two. [John Tukey's eulogy of his wife.]* -- John Tukey, The life and professional contributions of John W. Tukey, The Annals of Statistics, 2001, Vol 30, p. 46.\n```\n\nUse `as.latex()` for Latex-formatted quotes (for the [epigraph](https://ctan.org/pkg/epigraph) package):\n\n```\nR\u003e cat(as.latex(statquote(\"eulogy\")))\n\\epigraph{One is so much less than two. [John Tukey's eulogy of his wife.]}{John Tukey, The life and professional contributions of John W. Tukey, The Annals of Statistics, 2001, Vol 30, p. 46.}\n```\n\nUse `as.data.frame()` to see unformatted quotes:\n\n```\nR\u003e as.data.frame(statquote(\"eulogy\"))\n    qid                                                             text     source\n411 411 One is so much less than two. [John Tukey's eulogy of his wife.] John Tukey\n                                                                                                        cite\n411 The life and professional contributions of John W. Tukey, The Annals of Statistics, 2001, Vol 30, p. 46.\n     url       tags  tex\n411 \u003cNA\u003e statistics \u003cNA\u003e\n```\n\n#### Tags\n\nOne or more keyword `tags` are used to classify quotes in the quotes database. These provide another means of searching. The code below produces a bar plot of tags, sorted by frequency.\n\n```\nlibrary(ggplot2)\nqt \u003c- quote_tags(table=TRUE)\nqtdf \u003c-as.data.frame(qt)\n# Sort tags by frequency\nqtdf |\u003e\n  dplyr::mutate(tags = forcats::fct_reorder(tags, Freq)) |\u003e\n  ggplot2::ggplot(aes(x=Freq, y=tags)) +\n  geom_bar(stat = \"identity\")\n\n```\n\n\u003cimg src=\"man/figures/tags-bar-sorted.png\"\u003e\n\n#### Quote clouds\n\n`quote_cloud()` generates a word cloud based upon a search of the quotes database.\n\n```\n#quote_cloud(\"bayes\")\nquote_cloud()\n```\n\n\u003cimg src=\"man/figures/quotecloud.png\"\u003e\n\n#### Quote of the day\n\nTo have `statquotes` give you an inspirational quote of the day each time you start R, edit your `.Rprofile` file:\n\n```\n# Edit .Rprofile in home directory\nfile.edit(file.path(\"~\", \".Rprofile\"))\n```\nAdd this line to the bottom of `.Rprofile`, then save and close `.Rprofile`.\n\n```\nif(interactive()) statquotes::statquote()\n```\n\n### Authors\n\nMichael Friendly,\nKevin Wright,\nPhil Chalmers,\nMatthew Sigal\n\n\n### License\n\nGPL (\u003e= 2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendly%2Fstatquotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendly%2Fstatquotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendly%2Fstatquotes/lists"}