[Rd] beta symbol cut off in y axis label using jpeg/png/tiff

From: Stephen Weigand <weigand.stephen_at_gmail.com>
Date: Fri, 17 Oct 2008 18:19:31 -0500

I am having trouble showing the Greek symbol "beta" correctly in the y-axis label of bitmap plots.

Specifically, on my system the top of the "beta" symbol is cut off using the following example:

file.jpg <- paste(tempfile(), ".jpg", sep = "")

jpeg(file.jpg, h = 3, w = 3, units = "in", res = 300, type = "Xlib") boxplot(rnorm(10), ylab = expression(beta)) dev.off()

I have the same problem with tiff() and png(). I don't have cairo capabilities on this system.

On another system with cairo, if I use 'type = "cairo"' the jpeg is correct. If I use 'type = "Xlib", I get this error:

Error in title(ylab = expression(beta)) :   X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 5 at size 12 could not be loaded

My system information is below.

platform       sparc-sun-solaris2.10
arch           sparc
os             solaris2.10
system         sparc, solaris2.10
major          2
minor          7.1
year           2008
month          06
day            23
svn rev        45970
language       R

version.string R version 2.7.1 (2008-06-23)


R version 2.7.1 (2008-06-23)


attached base packages:
[1] grDevices datasets splines graphics utils stats methods
[8] base


    jpeg      png    tcltk      X11     aqua
    TRUE     TRUE     TRUE     TRUE    FALSE
http/ftp  sockets   libxml     fifo   cledit
    TRUE     TRUE     TRUE     TRUE     TRUE
   iconv      NLS  profmem    cairo

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 17 Oct 2008 - 23:22:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 20 Oct 2008 - 07:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive