Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michbur/stormlight-ggplot2
Alethi font from Brandon Sanderson's Stormlight Archive and example usage in R
https://github.com/michbur/stormlight-ggplot2
font ggplot2 r stormlight-archive
Last synced: 9 days ago
JSON representation
Alethi font from Brandon Sanderson's Stormlight Archive and example usage in R
- Host: GitHub
- URL: https://github.com/michbur/stormlight-ggplot2
- Owner: michbur
- Created: 2023-03-18T19:59:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-13T19:53:33.000Z (over 1 year ago)
- Last Synced: 2023-08-03T17:57:27.187Z (over 1 year ago)
- Topics: font, ggplot2, r, stormlight-archive
- Language: R
- Homepage:
- Size: 708 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```# Alethi font in ggplot2
This repository contains:
- the Alethi font, as created by turos of tempered steel (obtained from https://www.17thshard.com/forum/topic/2285-alethi-font-and-transliterator-re-launch/).
- the code examples for the usege of the Alethi font in ggplot2 (**figure.R**).
- the dataset on the eyebrow raising was created by [Ning1253](https://github.com/Ning1253) and published here: https://github.com/Ning1253/StormlightBlush/. I converted it to .csv using **get-data.R**.```{r example}
library(ggplot2)
library(showtext)font_add(family = "AlethiTS_lined", regular = "AlethiTS Fontv2/AlethiTS_lined.ttf")
showtext_auto()
dat <- read.csv("stormlight-blushes.csv")
p <- ggplot(dat, aes(x = char, y = blushes)) +
geom_col() +
scale_x_discrete("Character") +
scale_y_continuous("Number of blushes") +
coord_flip() +
theme_bw() +
theme(legend.position = "bottom",
axis.title = element_text(family = "AlethiTS_lined"),
axis.text.y = element_text(family = "AlethiTS_lined", size = 3))```
*Journey before destination*.