[BioC] smoothScatter axis limits

Wolfgang Huber huber at ebi.ac.uk
Sat Jun 2 16:04:21 CEST 2007


Hi Rob ,

currently this is not implemented, but it would not be difficult to do 
that (have a look at the function definition and that of 
geneplotter:::.smoothScatterCalcDensity). Patches are welcome :)

For now, a pragmatic way to circumvent this is to subset x and y in your 
code example to remain within the intended ranges before calling 
smoothScatter.

  Best wishes
   Wolfgang


Scharpf ha scritto:
> Hi all,
> 
> Is it possible to define your own axis limits in smoothScatter?  For  
> instance,
> 
>  > x <- rnorm(1000)
>  > y <- rnorm(1000)
>  > smoothScatter(x, y, xlim=c(-10, 10), ylim=c(-5,5))
> 
> does not produce the intended result.  Suggestions?   Session info  
> below...
> 
> Thanks,
> 
> Rob
> 
>  > sessionInfo()
> 
> R version 2.6.0 Under development (unstable) (2007-04-27 r41355)
> powerpc-apple-darwin8.9.0
> 
> locale:
> C
> 
> attached base packages:
> [1] "tools"     "stats"     "graphics"  "grDevices" "utils"      
> "datasets"
> [7] "methods"   "base"
> 
> other attached packages:
> KernSmooth geneplotter     lattice    annotate     Biobase
>    "2.22-20"    "1.15.1"    "0.15-4"    "1.13.8"    "1.15.2"
>



More information about the Bioconductor mailing list