Hello,
I want to label the axes of my Scatterplots witch δ13C and δ15N, the Number beeing in superscript and yes, before the letters.
I tried it using the ^ but that did not work out. Maybe I am just missing a package or something?
Would be nice to find a solution during this Weekend
The ggtext package is perfect for this. In the example below, I pulled data from the starwars dataset to create the graph, but the code for labs and theme should be what you need.
library(tidyverse)
library(ggtext)
ggplot(head(starwars, 10), aes(x = height, y = mass)) +
geom_point() +
labs(x = 'δ<sup>13</sup>C',
y = 'δ<sup>15</sup>N',
title = 'Feathers') +
theme(axis.title.x = element_markdown(),
axis.title.y = element_markdown(),
)