[R] Viewing Function Code

Tobias Verbeke tobias.verbeke at openanalytics.be
Tue Sep 15 22:24:31 CEST 2009


Michael Pearmain wrote:

> I'd like to see the function code behind the barplots2() function in the
> gplots package, however i come across a bit of a stumbling block of a hidden
> function, can anyone help?
> 
>> library(gplots)
>> methods(barplot2)
> [1] barplot2.default*
> 
>    Non-visible functions are asterisked
>> barplot2
> function (height, ...)
> UseMethod("barplot2")
> <environment: namespace:gplots>

getAnywhere("barplot2.default")

HTH,
Tobias




More information about the R-help mailing list