Skip to content
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

How to add a horizontal bar #91

Open
kongdd opened this issue Jul 21, 2022 · 2 comments
Open

How to add a horizontal bar #91

kongdd opened this issue Jul 21, 2022 · 2 comments

Comments

@kongdd
Copy link

kongdd commented Jul 21, 2022

Dear @clauswilke

Could you give some guidance how to add a horizontal bar in a variable, just like \bar(x) in latex?
Thanks very much!

Dongdong

@clauswilke
Copy link
Collaborator

I don't think that possible currently, unfortunately.

@teunbrand
Copy link

You can add the unicode overline \u0305 after the character that needs it.

library(ggplot2)
library(ggtext)

ggplot() +
  annotate(
    "richtext",
    x = 1, y = 1, label = "Fooba\u0305r",
    size = 10
  )

Created on 2023-04-21 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants