Re: [R] ASCII character set and hyphen

2007-11-20 Thread Roland Kaiser
Am 20.11.2007 um 12:13 schrieb Prof Brian Ripley: > On Tue, 20 Nov 2007, Roland Kaiser wrote: > >> >> Am 19.11.2007 um 18:43 schrieb Prof Brian Ripley: >> >>> On Mon, 19 Nov 2007, Roland Kaiser wrote: >>> >>>> Hi all! >>>> >&g

Re: [R] ASCII character set and hyphen

2007-11-20 Thread Roland Kaiser
Am 19.11.2007 um 18:43 schrieb Prof Brian Ripley: > On Mon, 19 Nov 2007, Roland Kaiser wrote: > >> Hi all! >> >> To add to my previous posting >> I want to give some more deatils give a more precise >> >> I want to print a hyphen to a pdf() or post

[R] ASCII character set and hyphen

2007-11-19 Thread Roland Kaiser
Hi all! I want to print a hyphen to a pdf() or postscript() device. As the documentaion of postscript says ASCII Character 45("-") is mapped to a minus sign (ASCII Character 95) by default. The advice given is to use "\173" for a hyphen. But, the following code produces a curly brace instead of

[R] ASCII character set and hyphen

2007-11-19 Thread Roland Kaiser
Hi all! To add to my previous posting I want to give some more deatils give a more precise I want to print a hyphen to a pdf() or postscript() device. As the documentaion of postscript says ASCII Character 45("-") is mapped to a minus sign (ASCII Character 95) by default. The advice given is to

[R] hypen in pdf

2007-11-19 Thread Roland Kaiser
Hi all! I consulted the help pages for postscript(). I noticed the execption for the "-" sign which is mapped to a minus glyph. How can I define a textstring that contains a hyphen (a short dash) and is applicable with strwidth(). Further I want to print it with postscript() Thanks for any a

[R] dtp point and pdf

2007-11-12 Thread Roland Kaiser
Hi all! I encountered precision problems using pdf(). So far, I found out, that pdf() sets the Mediabox to even values in dtp points (1/72 inch). This can be seen in the following example. page.width <- 13.1/2.54 # in centimeters page.height <- 19/2.54 pdf(file = "foo.pdf", width = page.width,

Re: [R] strwidth of bold font

2007-10-31 Thread Roland Kaiser
egments(4, 6, 4 + strwidth("testing"), 6, col="red") > par(font=2) > text(4, 8, "testing", adj=c(0, 0)) > segments(4, 8, 4 + strwidth("testing"), 8, col="red") > > Paul > > >> On 30/10/2007, Roland Kaiser <[EMAIL PROTE

Re: [R] strwidth of bold font

2007-10-30 Thread Roland Kaiser
Thanks it does the trick! > Perhaps: > > strwidth(expression(bold("text"))) > > > On 30/10/2007, Roland Kaiser <[EMAIL PROTECTED]> wrote: Hi! > > Is there a way to get the string width of the bold typefaces? > > like: strwidth("text&q

[R] strwidth of bold font

2007-10-30 Thread Roland Kaiser
Hi! Is there a way to get the string width of the bold typefaces? like: strwidth("text", family = "serif", font = 2). Thanks Roland __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide htt