[R] What is the newline escape sequence when using the Hershey fontfamily?
Henrique Dallazuanna
wwwhsd at gmail.com
Sat Jan 16 13:08:17 CET 2010
You should try this:
xx <- c(1:10)
yy <- c(11:20)
xyplot(yy~xx,
main=list("This title should\nhave two lines"
, fontfamily="HersheySymbols"
)
)
On Fri, Jan 15, 2010 at 11:00 AM, Douglas Walcerz <dwalcerz at gmail.com> wrote:
> Hello!
>
> The question is simple: What is the escape sequence for a new line when
> using Hershey fonts? I obviously tried '\n' but it didn't work (see the
> sample below). I looked at 'demo(Hershey)' but all it only shows escape
> sequences for printable characters.
>
> The sample I've been using to try to find the escape sequence is below. You
> can comment or un-comment the fontfamily line to turn Hershey on or off.
>
> xx <- c(1:10)
> yy <- c(11:20)
> xyplot(yy~xx,
> main=list("This title should\nhave two lines"
> # , fontfamily="HersheySans"
> )
> )
>
> Thanks,
> Douglas
>
> ______________________________________________
> 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.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
More information about the R-help
mailing list