Skip to content

do.call and hist

3 messages · Florian Hahne, Gabor Grothendieck

#
Hi everyone,
here is something I noticed when playing around with do.call:
do.call(hist, list(x=1:10))
uses for the main title and also the axis labels "c(1,2,3,4,5,6,7,8,9,10)"
So
do.call(hist, list(x=1:10000))
nicely fills up your screen with numbers.
Is there a way to get the deparsing from the list names to the labels 
right.
Cheers,
Florian

PS: My sessionInfo:
Version 2.3.1 Patched (2006-06-01 r38258)
x86_64-unknown-linux-gnu

attached base packages:
[1] "grid"      "tools"     "methods"   "stats"     "graphics"  "grDevices"
[7] "utils"     "datasets"  "base"

other attached packages:
 geneplotter     annotate        prada RColorBrewer      Biobase
    "1.10.0"     "1.10.0"      "1.9.5"      "0.2-3"     "1.10.0"
#
Try

x <- 1:10
do.call(hist, list(quote(x)))

or

do.call(hist, list(x = 1:10, xlab = "x"))
On 6/12/06, Florian Hahne <f.hahne at dkfz-heidelberg.de> wrote:
#
Thanks, that did the trick...
Gabor Grothendieck wrote: