{"id":13858416,"url":"https://github.com/gastonstat/arcdiagram","last_synced_at":"2025-10-30T02:06:31.634Z","repository":{"id":6696199,"uuid":"7941521","full_name":"gastonstat/arcdiagram","owner":"gastonstat","description":"R package arcdiagram","archived":false,"fork":false,"pushed_at":"2022-03-27T00:13:12.000Z","size":64,"stargazers_count":77,"open_issues_count":10,"forks_count":38,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-22T16:39:29.065Z","etag":null,"topics":["arc-diagram","data-visualization","graphs","r-package"],"latest_commit_sha":null,"homepage":"","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/gastonstat.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":"2013-01-31T17:23:55.000Z","updated_at":"2024-11-08T21:37:21.000Z","dependencies_parsed_at":"2022-08-20T07:51:18.778Z","dependency_job_id":null,"html_url":"https://github.com/gastonstat/arcdiagram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gastonstat/arcdiagram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastonstat%2Farcdiagram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastonstat%2Farcdiagram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastonstat%2Farcdiagram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastonstat%2Farcdiagram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gastonstat","download_url":"https://codeload.github.com/gastonstat/arcdiagram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastonstat%2Farcdiagram/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265220973,"owners_count":23729925,"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":["arc-diagram","data-visualization","graphs","r-package"],"created_at":"2024-08-05T03:02:07.858Z","updated_at":"2025-10-30T02:06:31.627Z","avatar_url":"https://github.com/gastonstat.png","language":"R","funding_links":["https://www.paypal.com/donate?business=ZF6U7K5MW25W2\u0026currency_code=USD"],"categories":["R"],"sub_categories":[],"readme":"# `\"arcdiagram\"`\n\n`arcdiagram` is a minimalist package that provides a basic function to plot \npretty arc diagrams in R.\n\n\n## Donation\n\nAs a Data Science and Statistics educator, I love to share the work I do. \nEach month I spend dozens of hours curating learning materials and computational\ntools like this R package. If you find any value and usefulness in `arcdiagram`, \nplease consider making a \n\u003ca href=\"https://www.paypal.com/donate?business=ZF6U7K5MW25W2\u0026currency_code=USD\" target=\"_blank\"\u003eone-time donation---via paypal---in any amount\u003c/a\u003e \n(e.g. the amount you would spend inviting me a coffee or any other drink). \nYour support really matters.\n\n\u003ca href=\"https://www.paypal.com/donate?business=ZF6U7K5MW25W2\u0026currency_code=USD\" target=\"_blank\"\u003e\u003cimg src=\"https://www.gastonsanchez.com/images/donate.png\" width=\"140\" height=\"60\"/\u003e\u003c/a\u003e\n\n\n\n\n## Installation\n\n`arcdiagram` is only available in github (but not in CRAN). To install the \ndevelopment version, use `install_github()` from R package `\"devtools\"`:\n\n```ruby\n# install 'arcdiagram' (development version)\ndevtools::install_github('gastonstat/arcdiagram')\n```\n\n## Some Examples\n\n```ruby\nlibrary(arcdiagram)\n\n# create a star graph with 10 nodes\nstar_graph = graph.star(10, mode=\"out\")\n\n# extract edgelist\nstar_edges = get.edgelist(star_graph)\n\n# inspect star_edges\nstar_edges\n\n# plot 1: default arc diagram\narcplot(star_edges)\n\n# plot 2: show nodes as circles, in decreasing order\narcplot(star_edges, show.nodes=TRUE, sorted=TRUE, decreasing=TRUE, las=1)\n\n# plot 3: different ordering, arc widths, arc colors, and node sizes\nset.seed(120)\narcplot(star_edges, ordering=sample(1:10), labels=paste(\"node\",1:10,sep=\"-\"),\n   lwd.arcs=4*runif(10,.5,2), col.arcs=hsv(runif(9,0.6,0.8),alpha=0.4),\n   show.nodes=TRUE, pch.nodes=21, cex.nodes=runif(10,1,3), \n   col.nodes=\"gray80\", bg.nodes=\"gray90\", lwd.nodes=2)\n   \n# plot 4: same as plot 3 but vertically oriented\nset.seed(120)\nop = par(mar = c(0.5, 5, 0.5, 3))\narcplot(star_edges, ordering=sample(1:10), horizontal=FALSE,\n   labels=paste(\"node\",1:10,sep=\"-\"),\n   lwd.arcs=4*runif(10,.5,2), col.arcs=hsv(runif(9,0.6,0.8),alpha=0.4),\n   show.nodes=TRUE, pch.nodes=21, cex.nodes=runif(10,1,3), \n   col.nodes=\"gray80\", bg.nodes=\"gray90\", lwd.nodes=2)\npar(op)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgastonstat%2Farcdiagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgastonstat%2Farcdiagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgastonstat%2Farcdiagram/lists"}