Dear all,
Thanks to Ista and Olivier. The solution of Ista works for some characters
but not all. The solution of Olivier works, at least for the characters
that I've tried.
Best regards,
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team
Hi,
AFAICT, you need to use a Cairo device for being able to display some
Unicode
characters in a plot.
From my experience, the CairoPDF() from library(Cairo) does not work
(and I don't understand the difference with cairo_pdf()), but the
cairo_pdf() from grDevices does work perfectly well for
install.packages("emojifont")
library(emojifont)
... # plot as before.
Best,
Ista
On Fri, Mar 10, 2017 at 11:06 AM, Thierry Onkelinx
wrote:
> Dear all,
>
> I'd like to use some UTF-8 characters in a plot. Some of them are not
> rendered with saving the plot as pdf. Any suggestions?
>
> library(
Dear all,
I'd like to use some UTF-8 characters in a plot. Some of them are not
rendered with saving the plot as pdf. Any suggestions?
library(ggplot2)
symbols <- c("\U1F697", "\U00A9", "\U24DA", "\U00C1")
test <- data.frame(
x = seq_along(symbols) %% ceiling(sqrt(length(symbols))),
y = ceili
4 matches
Mail list logo