Re: [R] Boxplot with Log10 and base-exponent axis

2012-06-25 Thread Luigi
; -Original Message- > From: Luigi [mailto:marongiu.lu...@gmail.com] > Sent: Saturday, June 23, 2012 8:49 AM > To: William Dunlap > Cc: 'Martin Maechler'; r-help@r-project.org > Subject: RE: [R] Boxplot with Log10 and base-exponent axis > > Thank you! > This works g

Re: [R] Boxplot with Log10 and base-exponent axis

2012-06-24 Thread Steve Taylor
...@r-project.org] On Behalf Of Martin Maechler Sent: Saturday, 23 June 2012 4:57a To: Luigi; William Dunlap Cc: r-help@r-project.org Subject: Re: [R] Boxplot with Log10 and base-exponent axis > The key is to supply an expression, not text, to the labels argument to axis. > See help(&quo

Re: [R] Boxplot with Log10 and base-exponent axis

2012-06-23 Thread William Dunlap
- > From: Luigi [mailto:marongiu.lu...@gmail.com] > Sent: Saturday, June 23, 2012 8:49 AM > To: William Dunlap > Cc: 'Martin Maechler'; r-help@r-project.org > Subject: RE: [R] Boxplot with Log10 and base-exponent axis > > Thank you! > This works good. I understand th

Re: [R] Boxplot with Log10 and base-exponent axis

2012-06-23 Thread Luigi
Thank you! This works good. I understand that the value are now in Log10 scale, although I did not understand what is happening at line 4 of your script. I would like to ask how can I change the y limits since they now depend on par("user"). What if I'd like y limits extending from 1000 to 1 000

Re: [R] Boxplot with Log10 and base-exponent axis

2012-06-22 Thread Martin Maechler
> The key is to supply an expression, not text, to the labels argument to axis. > See help("plotmath") for details. Here is an example: > x <- list(One=10^(sin(1:10)+5), Two=10^(cos(1:30)*2)) > boxplot(x, log="y", yaxt="n") > ylim <- par("usr")[3:4] > log10AtY <- seq(ceiling(ylim[1]), f

Re: [R] Boxplot with Log10 and base-exponent axis

2012-06-22 Thread William Dunlap
ware wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of William Dunlap > Sent: Friday, June 22, 2012 8:14 AM > To: Luigi; r-help@r-project.org > Subject: Re: [R] Boxplot with Log10 and base

Re: [R] Boxplot with Log10 and base-exponent axis

2012-06-22 Thread William Dunlap
The key is to supply an expression, not text, to the labels argument to axis. See help("plotmath") for details. Here is an example: x <- list(One=10^(sin(1:10)+5), Two=10^(cos(1:30)*2)) boxplot(x, log="y", yaxt="n") ylim <- par("usr")[3:4] log10AtY <- seq(ceiling(ylim[1]), floor(ylim[2]))