{"id":13788848,"url":"https://github.com/kwstat/desplot","last_synced_at":"2026-02-11T03:32:53.121Z","repository":{"id":56934470,"uuid":"47788086","full_name":"kwstat/desplot","owner":"kwstat","description":"Plotting experimental designs for field experiments","archived":false,"fork":false,"pushed_at":"2025-12-05T20:33:21.000Z","size":3219,"stargazers_count":21,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-28T21:02:00.718Z","etag":null,"topics":["rstats"],"latest_commit_sha":null,"homepage":"http://kwstat.github.io/desplot/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kwstat.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-12-10T21:19:44.000Z","updated_at":"2025-12-05T20:31:44.000Z","dependencies_parsed_at":"2024-07-17T21:31:23.503Z","dependency_job_id":"7d8e334d-218f-4d0a-9e4d-0be21d430c2c","html_url":"https://github.com/kwstat/desplot","commit_stats":{"total_commits":52,"total_committers":1,"mean_commits":52.0,"dds":0.0,"last_synced_commit":"d5bbe9013b090020b88a947e832f4941a26fc187"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kwstat/desplot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwstat%2Fdesplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwstat%2Fdesplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwstat%2Fdesplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwstat%2Fdesplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwstat","download_url":"https://codeload.github.com/kwstat/desplot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwstat%2Fdesplot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T02:08:56.257Z","status":"ssl_error","status_checked_at":"2026-02-11T02:08:51.338Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["rstats"],"created_at":"2024-08-03T21:00:54.621Z","updated_at":"2026-02-11T03:32:53.117Z","avatar_url":"https://github.com/kwstat.png","language":"HTML","funding_links":[],"categories":["ggplot"],"sub_categories":["Domain-specific"],"readme":"# desplot \u003cimg src=\"man/figures/logo.png\" align=\"right\" /\u003e\n\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/desplot)](https://cran.r-project.org/package=desplot)\n[![CRAN_Downloads](https://cranlogs.r-pkg.org/badges/desplot)](https://cranlogs.r-pkg.org/badges/desplot)\n\nHomepage: https://kwstat.github.io/desplot\n\nRepository: https://github.com/kwstat/desplot\n\n`desplot` makes it easy to plot experimental designs of field trials in agriculture.\n\n## Key features\n\n* Flexible options to customize appearance of graphic.\n\n* Stable, well-tested using lattice graphics.\n\n* Beta version using ggplot2 graphics. Note ggplot2 is about 4 times slower.\n\n## Installation\n\n```R\n# Install the released version from CRAN:\ninstall.packages(\"desplot\")\n\n# Install the development version from GitHub:\ninstall.packages(\"devtools\")\ndevtools::install_github(\"kwstat/desplot\")\n```\n\n## Example 1\n\nThis data is is from a split-plot experiment with 6 replicates.  The replicates are shown by the colored regions and outlined by the thick lines.  The text codes and the thin lines define the whole-plots.  The nitrogen sub-plot treatments are shown by the text colors.\n\n```R\nrequire(agridat)\nrequire(desplot)\ndesplot(yates.oats, block ~ col+row,\n        col=nitro, text=gen, cex=1, aspect=511/176,\n        out1=block, out2=gen, \n        out2.gpar=list(col = \"gray50\", lwd = 1, lty = 1))\n```\n![desplot](man/figures/yates_oats_design.png?raw=true)\n\nThe default graphics are based on lattice.  It is also possible to create graphics based on ggplot2 by adding 'gg=TRUE' to the function. This functionality is in development and the legend for the ggplot version is not as polished as the lattice version.\n\n```R\nrequire(agridat)\nrequire(desplot)\ndesplot(yates.oats, block ~ col+row,\n        col=nitro, text=gen, cex=1, aspect=511/176,\n        out1=block, out2=gen, \n        out2.gpar=list(col = \"gray50\", lwd = 1, lty = 1), gg=TRUE)\n        # note, out2.gpar is ignored\n```\n\n![desplot](man/figures/yates_oats_design_ggplot.png?raw=true)\n\n## Example 2\n\nAnother very useful technique is to color the cells according to a continuous response variable (such as plot yield).\n\n```R\nrequire(agridat)\nrequire(desplot)\ndesplot(yates.oats, yield ~ col*row,\n        col=gen, num=nitro, cex=1, out1=block, aspect=511/176)\n```\n![desplot](man/figures/yates_oats_yield.png?raw=true)\n\n## Example 3\n\nMultiple locations can be shown in a single figure.\nData quality for each cell can be indicated with a slash drawn across questionable values and an X drawn across bad values.\n\n```R\nrequire(agridat)\nrequire(desplot)\nbmet \u003c- agridat::besag.met\n# Simulate a data quality flag\nbmet$flag \u003c- sample(c(\"G\",\"Q\",\"B\"), nrow(bmet), replace=TRUE, prob=c(0.8,0.1,0.1))\ndesplot(bmet, yield ~ col*row|county,\n        main=\"besag.met\",\n        num=gen, out1=rep, dq=flag,\n        aspect=1.0)\n```\n![desplot](man/figures/besag_met_missing.png?raw=true)\n\n### Logo note\n\nThe hexagon logo for this package shows a simple experimental design layout on top of a tan (soil-color) background.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwstat%2Fdesplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwstat%2Fdesplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwstat%2Fdesplot/lists"}