-
-
Save juanchiem/e7e13cc64fbe91b57cbc8fc7f8f36e83 to your computer and use it in GitHub Desktop.
ggplot axis labels with superscript and subscript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AntroSO42<-read.csv("antroSO42-.csv", header = TRUE) | |
Bp <- AntroSO42[ ,(2:4), ] | |
library(tidyverse) | |
Bp %>% | |
gather(value, variable, -Class) %>% | |
ggplot(aes(Class, | |
variable)) + | |
geom_boxplot() + | |
facet_wrap( ~ value) + | |
ylab(expression(Anthropogenic~SO[4]^{"2-"}~(ngm^-3))) + | |
theme_bw(base_size = 16) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment