Re: [R] Axis label colour

2011-05-02 Thread David Winsemius
On May 2, 2011, at 2:48 AM, Kang Min wrote: Hi all, Is there an argument in the axis() function to change the colour of the tick labels? I only found col.ticks, and col.lab, but they're not doing what I want. You just need to read a bit further down in the help page for `axis`. -- David Wi

[R] Axis label colour

2011-05-02 Thread Kang Min
Hi all, Is there an argument in the axis() function to change the colour of the tick labels? I only found col.ticks, and col.lab, but they're not doing what I want. Thanks, KM __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] axis label

2009-10-14 Thread Gabor Grothendieck
Try this: plot(0, main = ~ g(sigma * "|" * alpha)) On Wed, Oct 14, 2009 at 11:12 AM, maram salem wrote: > Hi all, > I want the y-axis label to be ( in symbols) > g(sigma given alpha) > where given is the conditional sign. > I've tried > ylab=expression(g(sigma|alpha))) > but it gave me > g(|(si

Re: [R] axis label

2009-10-14 Thread Jorge Ivan Velez
Hi Maram, How about this? plot(1, ylab = expression(sigma*"|"*alpha)) HTH, Jorge On Wed, Oct 14, 2009 at 11:12 AM, maram salem <> wrote: > Hi all, > I want the y-axis label to be ( in symbols) > g(sigma given alpha) > where given is the conditional sign. > I've tried > ylab=expression(g(sigma|a

[R] axis label

2009-10-14 Thread maram salem
Hi all, I want the y-axis label to be ( in symbols) g(sigma given alpha) where given is the conditional sign. I've tried ylab=expression(g(sigma|alpha))) but it gave me g(|(sigma,alpha)) where the sigma and alpha are in greek but the conditional sign is misplaced (before the bracket) Any help woul

Re: [R] axis label using expression()

2009-09-28 Thread Henrique Dallazuanna
Try this: plot(x,y,xlab=expression(hat(P)*4[k])) On Mon, Sep 28, 2009 at 11:59 AM, wrote: > Probably a very simple problem: > > > > I want to annotate a plot axis with a name of my data using > expression(). > > The name for the data is $\hat P4_k$ written in LaTex style -> hat > symbol above

[R] axis label using expression()

2009-09-28 Thread Tobias.Mathow
Probably a very simple problem: I want to annotate a plot axis with a name of my data using expression(). The name for the data is $\hat P4_k$ written in LaTex style -> hat symbol above P, followed by a 4 and a subscripted k index I tried to write this using x<-c(1,2,3,4) y<-c(3,5,

Re: [R] axis label config mgp

2009-07-16 Thread Greg Snow
- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Marlin Keith Cox > Sent: Wednesday, July 15, 2009 6:41 PM >

[R] axis label config mgp

2009-07-15 Thread Marlin Keith Cox
I have long axis labels (8units) on the x axis and 2 unit number labels on the y axis. I need to move the x axis title without moving the y axis title. I have used mgp=c(title, label and line), but mgp moves both the x and y titles. The following puts the y axis title way way out to the left. An

Re: [R] Axis label spanning multiple plots

2009-06-02 Thread Greg Snow
- > project.org] On Behalf Of Andre Nathan > Sent: Monday, June 01, 2009 2:03 PM > To: Greg Snow > Cc: r-help@r-project.org > Subject: Re: [R] Axis label spanning multiple plots > > Hello > > On Wed, 2009-05-27 at 13:38 -0600, Greg Snow wrote: > > Create an out

Re: [R] Axis label spanning multiple plots

2009-06-01 Thread Andre Nathan
On Mon, 2009-06-01 at 20:46 -0300, Andre Nathan wrote: > the x and y coordinates seem to always be relative the the axes of the > first call to plot(). Oops, no they aren't :) It was a mistake in the coordinates. They work exactly the way I wanted. Best, Andre ___

Re: [R] Axis label spanning multiple plots

2009-06-01 Thread Andre Nathan
Thank you, layout() worked perfectly! Another question: I'm adding some text to the plots (using text()) and the x and y coordinates seem to always be relative the the axes of the first call to plot(). Is there a way to reset the coordinates so that they are relative to the latest call to plot()?

Re: [R] Axis label spanning multiple plots

2009-06-01 Thread baptiste auguie
sorry i misread the question -- i thought you wanted the two plots were in one row. Here are a few options, 1- use ggplot2 or lattice, this is the default position for the labels in a plot with facets > library(ggplot2) > qplot(mpg, wt, data=mtcars, facets=vs ~ .) 2- use layout() or split.s

Re: [R] Axis label spanning multiple plots

2009-06-01 Thread Andre Nathan
On Mon, 2009-06-01 at 22:24 +0200, baptiste auguie wrote: > you can use title() with the sub argument, > > title(sub="x label", outer=T) # you might want to play around with > line argument Can title() span two plots? I'm trying to use a single title for two plots, something like +

Re: [R] Axis label spanning multiple plots

2009-06-01 Thread baptiste auguie
you can use title() with the sub argument, title(sub="x label", outer=T) # you might want to play around with line argument baptiste On 1 Jun 2009, at 22:03, Andre Nathan wrote: Hello On Wed, 2009-05-27 at 13:38 -0600, Greg Snow wrote: Create an outer margin (see ?par), then use mtext to

Re: [R] Axis label spanning multiple plots

2009-06-01 Thread Andre Nathan
Hello On Wed, 2009-05-27 at 13:38 -0600, Greg Snow wrote: > Create an outer margin (see ?par), then use mtext to put the title in the > outer margin. Sorry for taking that long to reply... I created an outer margin with par(oma = c (0, 2, 0, 0)) and then did par(mfrow = c(2, 1)) plot(.

Re: [R] Axis label spanning multiple plots

2009-05-27 Thread Greg Snow
n...@r- > project.org] On Behalf Of Andre Nathan > Sent: Wednesday, May 27, 2009 1:40 PM > To: r-help@r-project.org > Subject: [R] Axis label spanning multiple plots > > Hello > > I need to plot 3 graphs in a single column; the top two plots have the > same title, and I

[R] Axis label spanning multiple plots

2009-05-27 Thread Andre Nathan
Hello I need to plot 3 graphs in a single column; the top two plots have the same title, and I would like it to be written only once, centered horizontally and spanning the two plots. Something like t ++ || i || || t ++