-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotate_figure: use of superscript/subscript in the shared axis labels #165
Comments
Commenting as I am also looking for this solution. |
Hi, I'm going to comment again, because I've found a quick solution. Here is an example containing both subscript and superscript if anyone else is struggling:
As you can see, it does not really have anything to do with ggpubr functionality, and is more a case of using bquote() appropriately. Hope this helps anyone else wondering how to use superscript/subscript in conjunction with annotate_figure. |
Dear Thomas,
Thanks for suggestions and guidance. I will try this!
Regards
…On Mon, 7 Oct 2019 at 17:33, thomaszwagerman ***@***.***> wrote:
Hi,
I'm going to comment again, because I've found a quick solution. Here is
an example containing both subscript and superscript if anyone else is
struggling:
panel <- annotate_figure(panel, top = ggpubr::text_grob(paste0("Emissions
reductions achieved for ",site_name," ",site_type) ,color="black",size =18,
family = "sans", face = "bold"), left =
ggpubr::text_grob(bquote("Agricultural emission density
("*kg~NH[3]~ha^-1~yr^-1*")") ,rot =90,color="black",size =18, family =
"sans", face = "bold"))
As you can see, it does not really have anything to do with ggpubr
functionality, and is more a case of using bquote() appropriately.
Hope this helps anyone else wondering how to use superscript/subscript in
conjunction with annotate_figure.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#165?email_source=notifications&email_token=ALUISS7UBVXIWKEG4F5RUJTQNMQQ3A5CNFSM4HAFLLKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAQCCSQ#issuecomment-538976586>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALUISS62PN6CHFOAEHWR26LQNMQQ3ANCNFSM4HAFLLKA>
.
--
*Ramesha M N*
Scientist (Forestry)
ICAR-IISWC Research Centre
Opposite Hotel Pola Paradise
Ballari, Karnataka,
583104.
India.
Mob No. +91 8762730478
[email protected]
[email protected]
---------------------------------------
PhD Scholar, Netaji Subhas - ICAR International Fellow,
Department of Tropical Silviculture and Forest Ecology,
Burckhardt Institute,
Georg-August Universitat, Goettingen,
Busgenweg 1, 37077, Germany.
[email protected]
Mob No. + 49 15214988876 <[email protected]>
|
@thomaszwagerman thank you for your input, doc updated now |
Hi! excellent package, I have small query- is it possible to use superscript/subscript of text/values/symbols/etc in shared axis label?
The text was updated successfully, but these errors were encountered: