tab_header(
title = expression(Ni^"2+" ~ Remediation),
subtitle = "Trials 1- 4",
)
I would like to know how to get the 2+ to come as a power.
Here, I tried the expression function, but it does not work.
If it's enough for the "2+"
to show up in superscript, you could use the <sup>
tag in HTML.
gt(df) %>%
tab_header(
title = html("Ni<sup>2+</sup> ~ Remediation"),
subtitle = "Trials 1- 4"
)