I'm trying to render an R markdown report as an HTML file. My .Rmd includes ggplot figures with Hebrew (RTL language) labels, axes titles and legends. When I render the report as HTML, the resulting file displays the Hebrew text unencoded (i.e. not as UTF-8 as needed) and unreadable.
The ggplot figures read Hebrew text from both a tibble (Hebrew factors in the data, encoded as UTF-8) and ggplot functions like ylab()
.
Any thoughts on how to encode Hebrew text within ggplot, in an HTML R-markdown?
Thanks, Yoav