Ggplot: Unicode characters in axis ticks

I am not sure this will be helpful, but for the Mac environment, when you make your PDF have you tried extrafont::embed_fonts()?

For Linux, have you tried the unicode character for sigma (U+03A3)? My go to with the ... issue is to keep searching for alternative codings :flushed:.

UPDATE:
I have a love-hate for these LaTeX-knitr-ggplot issues, and just cannot stop until I crack them. After some hacking and reading, I found this post and remembered the dev argument/option in knitr. I found something that works for keeping the sigma in the PDF on my Mac, maybe might for you?

```{r echo=FALSE, dev="cairo_pdf"}

df1 = data_frame(x = 1:10, y = rnorm(10))

# works
ggplot(df1) + geom_point(aes(x, y)) + scale_x_continuous(labels = function(x) paste0(x, 'σ'))

# works
ggplot(df1) + geom_point(aes(x, y)) + scale_x_continuous(labels = function(x) paste0(x, '\U03C3'))

Cheers, Steph

5 Likes