Dear eveerybody,
I am making a .pdf, starting:
pdf("rotondje.pdf",width=m, height=m)
frame()
How can I set the background-colour of the frame yellow?
Thank you in advance.
Yours, Leberl
Pretty simple- use the par() function
pdf("rotondje.pdf",width=m, height=m)
frame()
par(bg="yellow")
#your stuff
dev.off()
Hope that helps
Mag. Ferri Leberl wrote:>
> Dear eveerybody,
> I am making a .pdf, starting:
>
> pdf("rotondje.pdf",width=m, height=m)
> frame()
>
> How can I set the background-colour of the frame yellow?
> Thank you in advance.
> Yours, Leberl
>
> ______________________________________________
> 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.
>
>
--
View this message in context:
http://www.nabble.com/Background-Colour-tp20156600p20160652.html
Sent from the R help mailing list archive at Nabble.com.
Thank you for your helpfull advice. Yet the par-command has to be placed before frame(). Yours, Leberl Am Samstag 25 Oktober 2008 04:18:30 schrieb andystats:> Pretty simple- use the par() function > pdf("rotondje.pdf",width=m, height=m) > frame() > par(bg="yellow") > #your stuff > dev.off() > > Hope that helps > > Mag. Ferri Leberl wrote: > > Dear eveerybody, > > I am making a .pdf, starting: > > > > pdf("rotondje.pdf",width=m, height=m) > > frame() > > > > How can I set the background-colour of the frame yellow? > > Thank you in advance. > > Yours, Leberl > > > > ______________________________________________ > > 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.