0

I have a legend that contains the character Δ and I am unable to produce publication quality EPS Figures. PNG and TIFF runs fine. Is this a bug? Is there any quick workarround?

I am on Ubuntu Linux 64-bit, running 64 bit R 3.0.2

setEPS()
postscript("Figure 1.eps", horizontal = FALSE, onefile = FALSE, paper = "special")
plot(1,1)
legend("topleft", c("ΔValue"))
dev.off()


png("Figure 1.png")
plot(1,1)
legend("topleft", c("ΔValue"))
dev.off()
ECII
  • 10,297
  • 18
  • 80
  • 121

1 Answers1

1

It works if you create the delta symbol with the expression function:

plot(1,1)
legend("topleft", expression(paste(Delta, "Value")))

enter image description here

Sven Hohenstein
  • 80,497
  • 17
  • 145
  • 168
  • Thank you for your fast reply. Any ideas why this happens? – ECII Nov 13 '13 at 06:00
  • @ECII I suppose postscript doesn't support large character sets. This possibly includes the character `Δ`. – Sven Hohenstein Nov 13 '13 at 08:50
  • 1
    postscript supports the full character set defined by the font. My guess your base font doesn't even have a "delta". The working code probably switches fonts, using symbol font for the delta and whatever your base font is for the rest. – agentp Nov 17 '13 at 15:34