I've got R running on a gentoo server that doesn't have X11 installed.  Its
a custom build to keep those dependencies at bay!  However, some of my
scripts use the base png() function and ggplot2. But, png uses X11.

A google search suggests using the Cairo package, which works... but
changes the fonts (specifically the size of the font).  Adjusting the
pointsize doesn't seem to have much effect.

Aside from tuning the CairoPNG function to make my graphs look right, has
anyone found a good way to avoid the X11 dependency but still use the base
png function?

If anyone has experience with CairoPNG and making it look like the base png
function, id love to hear what you've learned!


Thanks,

Justin


> capabilities()
    jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets
libxml     fifo   cledit    iconv      NLS  profmem
   FALSE    FALSE    FALSE    FALSE    FALSE    FALSE     TRUE     TRUE
TRUE     TRUE     TRUE     TRUE     TRUE    FALSE
   cairo
   FALSE
>

> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=C
          LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] Cairo_1.5-1   ggplot2_0.8.9 proto_0.3-9.2 reshape_0.8.4 plyr_1.7.1

loaded via a namespace (and not attached):
[1] tools_2.14.1
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to