{
  "_id": "6a1fd9f9b401979e734372b3",
  "Package": "gghinton",
  "Type": "Package",
  "Title": "Hinton Diagrams for 'ggplot2'",
  "Version": "0.1.0",
  "Authors@R": "person(\"Robin\", \"Foster\", email = \"gghinton@proton.me\",\nrole = c(\"aut\", \"cre\", \"cph\"))",
  "Description": "Provides a 'ggplot2' extension for drawing Hinton\ndiagrams, a visualisation technique for numerical matrices in\nwhich the area of each square is proportional to the magnitude\nof the corresponding entry. For signed data, white squares\nindicate positive values and black squares indicate negative\nvalues on a grey background. Hinton diagrams are especially\nuseful for visualising PCA weight matrices, correlation\nmatrices, and transition matrices.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/robin-foster-rf/gghinton",
  "BugReports": "https://github.com/robin-foster-rf/gghinton/issues",
  "Language": "en-GB",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "Repository": "https://robin-foster-rf.r-universe.dev",
  "Date/Publication": "2026-04-02 16:44:13 UTC",
  "RemoteUrl": "https://github.com/robin-foster-rf/gghinton",
  "RemoteRef": "HEAD",
  "RemoteSha": "3a2a4c45d41346e6bfe8529399290ebd71772402",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-03 07:32:06 UTC",
    "User": "root"
  },
  "Author": "Robin Foster [aut, cre, cph]",
  "Maintainer": "Robin Foster <gghinton@proton.me>",
  "MD5sum": "f36a83fd0cfa705571afaf4fdd6a793e",
  "_user": "robin-foster-rf",
  "_type": "src",
  "_file": "gghinton_0.1.0.tar.gz",
  "_fileid": "23cfde9e0efa0491aa601de59d80023bde1945424368bcb5f73447b02564cf9b",
  "_filesize": 1262482,
  "_sha256": "23cfde9e0efa0491aa601de59d80023bde1945424368bcb5f73447b02564cf9b",
  "_created": "2026-06-03T07:32:06.000Z",
  "_published": "2026-06-03T07:38:33.121Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79243990676,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7378378687"
    },
    {
      "job": 79243990665,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378376278"
    },
    {
      "job": 79243990726,
      "time": 162,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7378438259"
    },
    {
      "job": 79243990644,
      "time": 162,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378386199"
    },
    {
      "job": 79243563192,
      "time": 167,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378331883"
    },
    {
      "job": 79243990741,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378365694"
    },
    {
      "job": 79243990687,
      "time": 97,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7378363073"
    },
    {
      "job": 79243990694,
      "time": 83,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7378358122"
    },
    {
      "job": 79243990735,
      "time": 72,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7378354878"
    }
  ],
  "_buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/robin-foster-rf/gghinton",
  "_commit": {
    "id": "3a2a4c45d41346e6bfe8529399290ebd71772402",
    "author": "Robin Foster <69692954+robin-foster-rf@users.noreply.github.com>",
    "committer": "Robin Foster <69692954+robin-foster-rf@users.noreply.github.com>",
    "message": "fix typo\n",
    "time": 1775148253
  },
  "_maintainer": {
    "name": "Robin Foster",
    "email": "gghinton@proton.me"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "grid",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "version": ">= 1.3.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    }
  ],
  "_owner": "robin-foster-rf",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-13",
      "n": 5
    },
    {
      "week": "2026-14",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-03-29"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "robin-foster-rf",
      "count": 7,
      "uuid": 69692954
    }
  ],
  "_userbio": {
    "uuid": 69692954,
    "type": "user",
    "name": "Robin Foster"
  },
  "_downloads": {
    "count": 92,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/gghinton"
  },
  "_devurl": "https://github.com/robin-foster-rf/gghinton",
  "_searchresults": 5,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/gghinton.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/robin-foster-rf/gghinton",
  "_realowner": "robin-foster-rf",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-04-01"
    }
  ],
  "_exports": [
    "as_hinton_df",
    "geom_hinton",
    "GeomHinton",
    "matrix_to_hinton",
    "scale_fill_hinton",
    "stat_hinton",
    "StatHinton",
    "theme_hinton"
  ],
  "_datasets": [
    {
      "name": "alice_bigrams",
      "title": "English character bigram counts from Alice's Adventures in Wonderland",
      "object": "alice_bigrams",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "a",
        "b",
        "c",
        "d",
        "e",
        "f",
        "g",
        "h",
        "i",
        "j",
        "k",
        "l",
        "m",
        "n",
        "o",
        "p",
        "q",
        "r",
        "s",
        "t",
        "u",
        "v",
        "w",
        "x",
        "y",
        "z",
        " "
      ],
      "rows": 27,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "alice_bigrams",
      "title": "English character bigram counts from Alice's Adventures in Wonderland",
      "topics": [
        "alice_bigrams"
      ]
    },
    {
      "page": "as_hinton_df",
      "title": "Convert an object to a tidy data frame for 'geom_hinton()'",
      "topics": [
        "as_hinton_df",
        "as_hinton_df.data.frame",
        "as_hinton_df.default",
        "as_hinton_df.matrix",
        "as_hinton_df.table"
      ]
    },
    {
      "page": "geom_hinton",
      "title": "Hinton diagrams for ggplot2",
      "topics": [
        "GeomHinton",
        "geom_hinton",
        "StatHinton",
        "stat_hinton"
      ]
    },
    {
      "page": "matrix_to_hinton",
      "title": "Convert a matrix to a tidy data frame for use with 'geom_hinton()'",
      "topics": [
        "matrix_to_hinton"
      ]
    },
    {
      "page": "scale_fill_hinton",
      "title": "Colour scale for Hinton diagrams",
      "topics": [
        "scale_fill_hinton"
      ]
    },
    {
      "page": "theme_hinton",
      "title": "A clean ggplot2 theme for Hinton diagrams",
      "topics": [
        "theme_hinton"
      ]
    }
  ],
  "_readme": "https://github.com/robin-foster-rf/gghinton/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "gghinton.Rmd",
      "filename": "gghinton.html",
      "title": "Getting Started with gghinton",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is a Hinton diagram?",
        "When to use a Hinton diagram",
        "Quick start",
        "Unsigned data",
        "Converting different data structures",
        "The scale_by parameter",
        "Customization",
        "Custom colours",
        "Axis labels from matrix names",
        "Removing the background",
        "Correlation matrix example"
      ],
      "created": "2026-03-29 10:18:28",
      "modified": "2026-03-29 10:18:28",
      "commits": 1
    },
    {
      "source": "use-cases.Rmd",
      "filename": "use-cases.html",
      "title": "Hinton Diagrams in Practice: A Gallery",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Correlation matrix",
        "2. PCA loadings",
        "3. Confusion matrix",
        "4. Social mobility: occupational status transitions",
        "5. Credit rating transitions",
        "6. Nucleotide substitution rates",
        "7. Regression coefficient matrix",
        "8. Cross-tabulation: hair and eye colour"
      ],
      "created": "2026-03-29 10:18:28",
      "modified": "2026-03-29 10:18:28",
      "commits": 1
    },
    {
      "source": "mackay-itila.Rmd",
      "filename": "mackay-itila.html",
      "title": "MacKay's ITILA Examples",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The MacKay colour scheme",
        "Figure 2.1: discrete unigram probabilities",
        "Figure 2.2: English letter bigrams",
        "Figure 2.3: Conditional probability distributions",
        "Figure 2.5: Bill and Fred's urn problem"
      ],
      "created": "2026-03-29 10:18:28",
      "modified": "2026-03-29 11:10:46",
      "commits": 2
    },
    {
      "source": "why-hinton.Rmd",
      "filename": "why-hinton.html",
      "title": "Why Hinton Diagrams?",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The problem with heatmaps for signed data",
        "Why area beats colour for magnitude",
        "The signed data advantage",
        "When other visualisations are better"
      ],
      "created": "2026-03-29 10:18:28",
      "modified": "2026-03-29 11:10:46",
      "commits": 2
    }
  ],
  "_score": 5.079181246047625,
  "_indexed": true,
  "_nocasepkg": "gghinton",
  "_universes": [
    "robin-foster-rf"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-03T07:34:30.000Z",
      "distro": "noble",
      "commit": "3a2a4c45d41346e6bfe8529399290ebd71772402",
      "fileid": "a95530706f1b28d33d564d836182bc1441a4d2212fff0a4f46ee6896914aa7fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-03T07:34:18.000Z",
      "distro": "noble",
      "commit": "3a2a4c45d41346e6bfe8529399290ebd71772402",
      "fileid": "176e691385a9ce7b72c71e380e212686a0265da08674c9a6c327ec96b8fc8724",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-06-03T07:37:40.000Z",
      "commit": "3a2a4c45d41346e6bfe8529399290ebd71772402",
      "fileid": "163e1bc9416e778961d238dafa55f5f7dcfc12f7f8157e0717609c113551eb21",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-06-03T07:34:56.000Z",
      "commit": "3a2a4c45d41346e6bfe8529399290ebd71772402",
      "fileid": "ae66f6971a85a1dca90493f348d9fd4a67759a45002c43727a6e07f706a6006c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-06-03T07:34:08.000Z",
      "commit": "3a2a4c45d41346e6bfe8529399290ebd71772402",
      "fileid": "8e8cc55d8376ce4ba3e5d6b41291b737961f38529bcd871a9e2cdc9e47669955",
      "status": "success",
      "buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-03T07:33:32.000Z",
      "commit": "3a2a4c45d41346e6bfe8529399290ebd71772402",
      "fileid": "31901ad168642b2129a61db51b806ac8198884d15198c40c5f7935e2744fcf9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-03T07:33:19.000Z",
      "commit": "3a2a4c45d41346e6bfe8529399290ebd71772402",
      "fileid": "5b2eed312202000a2292e15cd0ea0dd6f81153c3e311ccb40b1fad83f71e7a85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-03T07:33:10.000Z",
      "commit": "3a2a4c45d41346e6bfe8529399290ebd71772402",
      "fileid": "8035f99e823c4dab5f76b39c200e3df7f6d0cf08d647aa99750cdb31d9c18a82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/robin-foster-rf/actions/runs/26870247325"
    }
  ]
}