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
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
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()
>
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
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/
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
'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,
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
8 matches
Mail list logo