export
export copied to clipboard
Greek letters and symbols not supported
Hello,
using graph2ppt() the greek letters and symbols are converted to squares (this issue has already been raised here by scs some years ago). For instance, the code
par(mar = c(5, 5, 1, 1))
plot(0, ylab = expression(paste("E (mmol m"^-2, " s"^-1, ")", sep = "")), cex.lab = 1.5)
legend("topleft", expression(paste(sigma, " = ", 1, " ")), cex = 2)
graph2ppt(file = "test.pptx")
produces this plot in R:
but this plot when saved as pptx:

Moreover, the letters of the y-axis are not properly aligned (the 's' should be slightly more on the left to be aligned with the 'm'). The generated pptx is attached: test.pptx
Thanks for your help.
Hello @fpantin,
Unfortunately, I don't have PPT and when I open your file using LibreOffice Impress, the Greek letter appears correctly... So there must be something with the character encoding by PPT. The "s" is however also shifted on my side... This seems to be an issue at the backend level. export heavily relies on officer when exporting to Office formats. Maybe you could get better feedback there?
Thanks for your reply. I can't investigate more deeply now, but if the issues are solved later on I will keep you posted!