[R] why is text being rasterized with text()

From: Andrew Yee <yee_at_post.harvard.edu>
Date: Thu, 03 Apr 2008 01:10:35 -0400

Here's a question: I noticed that when I tried to create this simple graph of rectangles and text, R appears to generate text that is rasterized (this is seen both on the monitor and when the output is directed to a pdf file). Any thoughts?

value.seq <- c("<4",as.character(seq(from=4,to=10)),">11") frame()
par(usr=c(0,10,0,10) )

for (r in 1:9) {

rect(r,3,r+1,3.75, border = NA, col=heat.colors(9)[r])

#this text does not appear to be rasterized

   text(r+0.5,2.75, value.seq[r], cex=0.5)

#this text appears to be rasterized

   text(5.5,2.25,"expression (log2)", cex=0.5) }

Thanks,
Andrew



R-help_at_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. Received on Thu 03 Apr 2008 - 05:15:48 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 Thu 03 Apr 2008 - 06:30:25 GMT.

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

list of date sections of archive