[R] textplot() in gplots causes problems (0x9)

Jonas Malmros jonas.malmros at gmail.com
Wed Oct 31 20:22:30 CET 2007


Hello,

I am using textplot function in gplots package to put some model
output inside a PDF file, but it does not seem to work properly with
PDF.

I am doing follwing:
pdf(file="C:/...", paper="a4", width=8, height=12)
.model <- lm(.model.formula, data=database)
textplot(capture.output(summary(.model)), valign="top", halign="left")

I  am getting these error messages:

Warning messages:
1: In FUN(c("C", "a", "l", "l", ":", "l", "m", "(", "f", "o", "r",  :
  font width unknown for character 0x9
2: In strwidth(object, cex = cex) : font width unknown for character 0x9
3: In FUN(c("C", "a", "l", "l", ":", "l", "m", "(", "f", "o", "r",  :
  font width unknown for character 0x9
4: In strwidth(object, cex = cex) : font width unknown for character 0x9
5: In FUN(c("C", "a", "l", "l", ":", "l", "m", "(", "f", "o", "r",  :
  font width unknown for character 0x9
6: In strwidth(object, cex = cex) : font width unknown for character 0x9
7: In text.default(x = xpos, y = ypos, labels = object, adj = c(0,  :
  font width unknown for character 0x9
8: In text.default(x = xpos, y = ypos, labels = object, adj = c(0,  :
  font width unknown for character 0x9

This is a tab character that causes problems, I guess. Is there any
way to solve this?

Thank you in advance

-- 
Jonas Malmros
Stockholm University
Stockholm, Sweden



More information about the R-help mailing list