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 <dwalc...@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@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 ______________________________________________ R-help@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.