-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add #133
Comments
not reproducible ): it uses some personal functions that she wrote outside of the main script that I can't find. I still put the .Rmd that I wrote here just in case: ---
title: "R Consortium ISC Grants: Voronoi Treemap Visualization"
descriptionMeta: "This post demonstrates how to create a Voronoi treemap in R to visualize R Consortium ISC grants using ggplot2, VoronoiPlus, and ggtext."
descriptionTop: "This post demonstrates how to create a Voronoi treemap in R to visualize the distribution of R Consortium ISC grants by project year using [ggplot2](ggplot2-package.html), [VoronoiPlus](package/VoronoiPlus.html), and [ggtext](package/ggtext.html). The chart **highlights the size of funding** for each project."
sectionText: "Voronoi Treemap"
sectionLink: "package/VoronoiPlus.html"
DataToVizText: "Data to Viz"
DataToVizLink: "data-to-viz.com/graph/treemap.html"
url: "web-voronoi-treemap-r-consortium"
output:
html_document:
self_contained: false
mathjax: default
lib_dir: libs
template: template_rgg.html
css: style.css
toc: TRUE
toc_float: TRUE
toc_depth: 2
df_print: "paged"
---
```{r global options, include = FALSE}
knitr::opts_chunk$set(
warning = FALSE,
message = FALSE,
fig.align = "center",
fig.width = 12,
fig.height = 7
) AboutThis post visualizes the R Consortium ISC Grants by creating a Voronoi treemap. Each polygon in the treemap represents a different grant project, with the area of the polygon proportional to the funding amount. The treemap highlights the distribution of funds over different years and provides an insightful overview of the projects that received grants from the R Consortium Infrastructure Steering Committee (ISC). It has been created by Nicola Rennie. Thanks to her for sharing this beautiful chart! LibrariesTo create this visualization, we will use several R packages: Install VoronoiPlus with
DatasetThe dataset is part of the TidyTuesday initiative and includes information about grants awarded by the R Consortium ISC. The dataset contains columns for the year the grant was awarded, whether the project was funded, and the project title.
The data is processed by selecting relevant columns, computing Voronoi polygons based on the grant data, and preparing labels for each year.
Fonts and ColorsCustom fonts and colors are loaded to enhance the aesthetics of the plot. Google fonts
PlottingThe final visualization is a Voronoi treemap that uses custom polygons to represent different grant projects, with labels indicating the year.
Going furtherYou might be interested in:
|
https://twitter.com/nrennie35/status/1761712006040592748
The text was updated successfully, but these errors were encountered: