On Tue, Apr 8, 2008 at 6:27 AM, Francesco Strozzi
<francesco.strozzi at="" gmail.com=""> wrote:
> Hi all,
>
> is there a way to pass plot parameters, such as main, title, xlim,
ylim and
> so on, to the plotDensities function of the Limma package?
> I'm trying to pass this parameters but I always get an error:
>
> > plotDensities(RG,main="Raw Data")
> Error in plotDensities(RG, main = "Raw Data") :
> unused argument(s) (main = "Raw Data")
> > plotDensities(RG,xlim=c(1,2))
> Error in plotDensities(RG, xlim = c(1, 2)) :
> unused argument(s) (xlim = c(1, 2))
>
> The same appens using other common plot parameters.
> Any suggestion?
Hi, Francesco. The help for the function is always a good place to
look for this kind of thing. You can see that there are only a set
number of arguments and no '...', so you will not be able to pass in
other arguments. You could look at the plotDensity() function in the
affy package as another alternative that does have '...', so you could
pass in parameters of interest.
Sean
Hi Francesco,
I haven't used these plots much, but I don't think there's a way to do
this within the plotDensities function. An easy solution, though, is
to
modify it. Just open the function in the text editor and modify the
internal matplot function, as well as the corresponding input
variables.
I tried that, and it seems to work Ok.
Melissa
----- Original Message -----
From: Francesco Strozzi <francesco.strozzi@gmail.com>
Date: Tuesday, April 8, 2008 11:30 am
Subject: [BioC] plotDensities
To: bioconductor at stat.math.ethz.ch
> Hi all,
>
> is there a way to pass plot parameters, such as main, title, xlim,
> ylim and
> so on, to the plotDensities function of the Limma package?
> I'm trying to pass this parameters but I always get an error:
>
> > plotDensities(RG,main="Raw Data")
> Error in plotDensities(RG, main = "Raw Data") :
> unused argument(s) (main = "Raw Data")
> > plotDensities(RG,xlim=c(1,2))
> Error in plotDensities(RG, xlim = c(1, 2)) :
> unused argument(s) (xlim = c(1, 2))
>
> The same appens using other common plot parameters.
> Any suggestion?
>
> Thanks
>
> --
>
> Francesco
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor