Re: [R] Background colour of axis

2009-07-21 Thread Greg Snow
l Lacerda > Sent: Tuesday, July 21, 2009 8:21 AM > To: r-help@r-project.org > Subject: [R] Background colour of axis > > Hi, > > I would like to be able to shade the background of part of an axis. To > illustrate, consider the following code: > > par(xaxt="n&quo

[R] Background colour of axis

2009-07-21 Thread Miguel Lacerda
Hi, I would like to be able to shade the background of part of an axis. To illustrate, consider the following code: par(xaxt="n") x=1:10 y=rnorm(10,0,1) plot(x,y,type="l",xlab=NA) mtext(text=LETTERS[1:10], side=1, at=1:10) How can I make the background behind, say, "G H I" on the x-axis red? I h

Re: [R] Background Colour

2008-10-24 Thread Mag. Ferri Leberl
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() >

Re: [R] Background Colour

2008-10-24 Thread 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 b

[R] Background Colour

2008-10-24 Thread Mag. Ferri Leberl
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@r-project.org mailing list https://stat.ethz.ch/mailman/

Re: [R] background colour

2008-01-15 Thread Daniel Stepputtis
Dear Brian, thank you for helping. You are right, I was not aware of these two different meaning of bg. I will have a closer look to those help pages (whereas I've consulted these pages before I have written the question, but didnt realized the difference). Best regards Daniel Prof Brian Ripl

Re: [R] background colour

2008-01-14 Thread Prof Brian Ripley
'bg' is both a graphics parameter and an argument to plot.default: the two usages have different meanings. Please study the help (e.g. ?par, ?plot.default, ?points) carefully, since you are confusing the two meanings in your examples. On Mon, 14 Jan 2008, Daniel Stepputtis wrote: > Dear list,

[R] background colour

2008-01-13 Thread Daniel Stepputtis
Dear list, I am using R 2.6 on a Windows XP machine. I divided my device window and tried to set the backgroundcolor for each plot region/figure region separately. This seems not possible?? A simple example: # create random numbers a <- rnorm(100) # divide device window par(mfrow=c(1,2)) # set