Re: [R] moving xlabels in lattice

2010-11-25 Thread David Winsemius


On Nov 25, 2010, at 10:00 AM, statquant2 wrote:



Dear R users,

I am trying to move the xlab string on my xyplot, without success,  
I would

like it to shifted down, would one of you know a way ?


A quick and dirty way would be to stick a \n in front of your x-label.

--

David Winsemius, MD
West Hartford, CT

__
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.


Re: [R] moving xlabels in lattice

2010-11-25 Thread pilchat

Hi Colin,

I wish I could do the same with a persp plot, since the labels overlap 
the ticks and the annotations. Unfortunately, I don't know the answer to 
your question, but I'll stay tuned on this thread.


Good luck

Gaetano

On 11/25/2010 04:00 PM, statquant2 wrote:

Dear R users,

I am trying to move the xlab string on my xyplot, without success, I would
like it to shifted down, would one of you know a way ?

Thanks for reading
Colin


__
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.


Re: [R] moving xlabels in lattice

2010-11-25 Thread Peter Ehlers

On 2010-11-25 07:00, statquant2 wrote:


Dear R users,

I am trying to move the xlab string on my xyplot, without success, I would
like it to shifted down, would one of you know a way ?

Thanks for reading
Colin


Have a look at the possible height adjustments with

  trellis.par.get()$layout.heights

Likely candidates for adjustment are:
  xlab (space for the label)
  axis.bottom  (space between axis and bottom)
  axis.xlab.bottom (space between axis, label, and bottom)

Then try

  xyplot(rnorm(10) ~ 1:10, xlab = the x-label,
par.settings = list(
  layout.heights = list(
xlab = 3
  # axis.xlab.padding = 3
  # axis.bottom = 3
  )))

Comment/uncomment to suit.

Peter Ehlers

__
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.