Skip to content

Instantly share code, notes, and snippets.

@adisarid
Created May 7, 2020 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adisarid/b2ab5ec3dd225579bd4ad069ec111d83 to your computer and use it in GitHub Desktop.
Save adisarid/b2ab5ec3dd225579bd4ad069ec111d83 to your computer and use it in GitHub Desktop.
Right to left direction and alignment in ggplot2 charts
library(ggplot2)
ggplot() +
ggtitle(label = "הסימן הזה הפוך!",
subtitle = "\u202bאבל דווקא זה בסדר!") +
theme(plot.title = ggplot2::element_text(hjust = 1),
plot.subtitle = ggplot2::element_text(hjust = 1))
@adisarid
Copy link
Author

adisarid commented May 7, 2020

just noticed - obviously once loaded library(ggplot2) you don't need the ggplot2::element_text(...), just use element_text(...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment