Re: [R] font=5 (Was: greek symbols using pch)

From: Earl F. Glynn <efg_at_stowers-institute.org>
Date: Thu 13 Oct 2005 - 01:12:31 EST

"ecatchpole" <E.Catchpole@adfa.edu.au> wrote in message news:434C9CBA.2090901@adfa.edu.au...
> Earl,
>
> I don't think that's a bug. Try
>
> pdf("font5.pdf", onefile=FALSE)
>
> and similarly for postscript().

Mea culpa. The onefile=FALSE wasn't necessary (and caused Ghostscript not to open the postscript file).

The 2nd page was caused by an erroneous second plot statement in ShowFont5, which I put there for a one time test and then I failed to remove it. I was getting two pages because I had two plot statements. Sorry for the confusion.

All works fine with this code, which has only one plot statement, even with postscript and pdf files:

ShowFont5 <- function()
{
  oldpar <- par(font=5, las=1)
  plot(0:15,0:15,type="n",ylim=c(15,0),
    main="Symbols in Font=5",
    xlab="", ylab="",xaxt="n", yaxt="n")   axis(BOTTOM<-1, at=0:15)
  axis(LEFT <-2, at=0:15, 16*0:15)
  abline(v=0.5 + 0:14,

         h=0.5 + 0:14, col="grey", lty="dotted")   for(i in 0:255)
  {
    x <- i %%16;
    y <- i %/% 16;
    points(x,y,pch=i)
  }
  par(oldpar)
}

efg



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 13 01:44:53 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:48:29 EST