wilkelab / ggtext

Improved text rendering support for ggplot2
https://wilkelab.org/ggtext/
GNU General Public License v2.0
655 stars 37 forks source link

Is it possible to have both a subscript and superscript on the same character? #104

Closed mdsdossant closed 1 year ago

mdsdossant commented 1 year ago

I tried things like, e.g.,

"<sub>*x*<sup>2</sup>j<sub>"

bwiernik commented 1 year ago

Yes, the 2 there will be slightly smaller and lower compared to if it were a superscript not also wrapped in subscript

image