{"id":13711519,"url":"https://github.com/jfq3/ggordiplots","last_synced_at":"2025-10-22T03:15:55.626Z","repository":{"id":83554363,"uuid":"87308928","full_name":"jfq3/ggordiplots","owner":"jfq3","description":"Make ggplot Versions of Vegan's Ordiplots","archived":false,"fork":false,"pushed_at":"2024-10-23T20:49:20.000Z","size":289,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-10T07:22:23.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jfq3.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-04-05T12:52:13.000Z","updated_at":"2025-01-27T13:51:37.000Z","dependencies_parsed_at":"2023-07-07T18:45:41.349Z","dependency_job_id":"bb1aa61c-afd6-4e5d-894c-c11884b2352f","html_url":"https://github.com/jfq3/ggordiplots","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jfq3/ggordiplots","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfq3%2Fggordiplots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfq3%2Fggordiplots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfq3%2Fggordiplots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfq3%2Fggordiplots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfq3","download_url":"https://codeload.github.com/jfq3/ggordiplots/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfq3%2Fggordiplots/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280371890,"owners_count":26319523,"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","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"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-08-02T23:01:09.038Z","updated_at":"2025-10-22T03:15:55.590Z","avatar_url":"https://github.com/jfq3.png","language":"R","funding_links":[],"categories":["Plot layers"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# ggordiplots\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/jfq3/ggordiplots/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jfq3/ggordiplots/actions/workflows/R-CMD-check.yaml)\n[![Github All Releases](https://img.shields.io/github/downloads/jfq3/ggordiplots/total.svg)])\n\u003c!-- badges: end --\u003e\n\nThe `vegan` package includes several functions for adding features to ordination plots: `ordiarrows()`,  `ordiellipse()`, `ordihull()`, `ordispider()` and `ordisurf()`. This package adds these same features to ordination plots made with `ggplot2`. In addition, `gg_ordibubble()` sizes points relative to the value of an environmental variable.\n\nThe functions are written so that features from each can be combined in customized ordination plots.  \n\nThe functions `ord_labels()` and `scale_arrow()` (used to ensure vector arrows fit within a plot) are exported to make it easier to generate custom ordination plots.  \n\n## Installation\n\nYou can install the development version of ggordiplots from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"jfq3/ggordiplots\")\n```\nYou can install the latest release from CRAN with:  \n\n``` r\ninstall.packages(\"ggordiplots\")\n```\n\n## Examples\n\nPlot an ordination with ellipses around treatment group centroids (at distances of one standard deviation) with `gg_ordiplot()`.  \n\n```{r}\nlibrary(ggordiplots)\ndata(\"dune\")\ndata(\"dune.env\")\ndune_bray \u003c- vegdist(dune, method = \"bray\")\nord \u003c- cmdscale(dune_bray, k = (nrow(dune) - 1), eig = TRUE, add = TRUE)\nplt1 \u003c- gg_ordiplot(ord, groups = dune.env$Management, plot = FALSE)\n```\n`plt1` is list with items named:\n```{r}\nnames(plt1)\n```\nThe first 5 items are data frames for making plots. The last item is a ggplot:  \n```{r}\nplt1$plot\n```\nFit a vector of Al concentrations to the ordination with `gg_envfit()`.  \n```{r}\nAl \u003c- as.data.frame(dune.env$A1)\ncolnames(Al) \u003c- \"Al\"\nplt2 \u003c- gg_envfit(ord, env = Al, groups = dune.env$Management, plot = FALSE)\nplt2$plot\n```\nAdd ellipses from the first plot to the second plot. The resulting plot can be further customized using usual `ggplot2` methods. For example, change the legend title.  \n```{r}\nplt2$plot +\n  geom_path(data = plt1$df_ellipse, aes(x=x, y=y, color=Group)) +\n  guides(color=guide_legend(title=\"Management\")) # Change legend title\n  \n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfq3%2Fggordiplots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfq3%2Fggordiplots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfq3%2Fggordiplots/lists"}