{"id":18246214,"url":"https://github.com/mfcovington/hearts","last_synced_at":"2026-02-15T02:03:50.954Z","repository":{"id":7010331,"uuid":"8278761","full_name":"mfcovington/heaRts","owner":"mfcovington","description":null,"archived":false,"fork":false,"pushed_at":"2013-02-19T02:37:50.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T22:57:51.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/mfcovington.png","metadata":{"files":{"readme":"README.Rmd","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":"2013-02-18T22:39:39.000Z","updated_at":"2013-12-22T15:31:23.000Z","dependencies_parsed_at":"2022-09-22T11:10:46.828Z","dependency_job_id":null,"html_url":"https://github.com/mfcovington/heaRts","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mfcovington/heaRts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2FheaRts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2FheaRts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2FheaRts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2FheaRts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfcovington","download_url":"https://codeload.github.com/mfcovington/heaRts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2FheaRts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29465397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-05T09:24:59.449Z","updated_at":"2026-02-15T02:03:50.935Z","avatar_url":"https://github.com/mfcovington.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Random Heart Generator\n\nI made [The Random Heart Generator][RANDOM_HEART_GENERATOR] for Valentine's Day as part of a weekly class I help teach on R and ggplot.\n\n## Defaults\n\nThe default parameters of The Random Heart Generator are:\n\n```{r eval = FALSE}\nhearts(n = 5, up = TRUE, free.love = FALSE)\n```\n\n## Usage\n\nThe Random Heart Generator plots five hearts of random size, position, and color (from the [rainbow color palette][COLOR_PALETTE]):\n\n```{r default_hearts}\nsource(\"random_heart_generator.R\")\nhearts()\n```\n\nBy changing `n`, you can plot any number of hearts:\n\n```{r ten_hearts}\nhearts(n = 10)\n```\n\nHowever, if you try to plot too many (100+), you will get a warning to help prevent R from becoming non-responsive:\n\n```{r}\nhearts(n = 150)\n```\n\nThis safeguard can be bypassed with the `free.love` option:\n\n```{r lots_of_hearts}\nhearts(n = 150, free.love = TRUE)\n```\n\nSince love can be messy, you can make your plot a bit more chaotic by changing the `up` option:\n\n```{r up+down_hearts}\nhearts(up = FALSE)\n```\n\n\u003c!-- LINKS --\u003e\n\n[COLOR_PALETTE]: http://stat.ethz.ch/R-manual/R-patched/library/grDevices/html/palettes.html\n[RANDOM_HEART_GENERATOR]: random_heart_generator.R","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfcovington%2Fhearts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfcovington%2Fhearts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfcovington%2Fhearts/lists"}