Hi, I'm trying again to get help with this issue, since r ggplot2::theme()
has no attribute for RTL languages I'm kinda lost.
R-markdown HTML document - RTL language text renders correctly
when adding plot with RTL language text it appears reversed
EXAMPLE
example <- data.frame(matrix(nrow = 20, ncol = 2))
example$Var1 <- sample(1:5, 20, replace = TRUE)
example$Var2 <- sample(1:12,20, replace = TRUE)
example$Var1 <- as.factor(example$Var1)
ggplot(data = example, aes(Var2)) + geom_bar(aes(fill = Var1)) +
scale_fill_manual(values = cbPalette) +
theme(text = element_text(family = "Arial Unicode MS")) +
xlab("רמת דתיות") + ylab("אחוזונים מספר ילדים") +
scale_x_discrete(labels=c("חילוני", "מסורתי", "דתי", "חרדי", "לא-יהודי"))
can anyone please help solve it?