Created
May 7, 2020 18:30
-
-
Save adisarid/b2ab5ec3dd225579bd4ad069ec111d83 to your computer and use it in GitHub Desktop.
Right to left direction and alignment in ggplot2 charts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
ggplot() + | |
ggtitle(label = "הסימן הזה הפוך!", | |
subtitle = "\u202bאבל דווקא זה בסדר!") + | |
theme(plot.title = ggplot2::element_text(hjust = 1), | |
plot.subtitle = ggplot2::element_text(hjust = 1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just noticed - obviously once loaded
library(ggplot2)
you don't need theggplot2::element_text(...)
, just useelement_text(...)
.