[R] Math expressions in pie chart labels?
Ben Bolker
bolker at ufl.edu
Wed May 3 19:15:44 CEST 2006
Prof Brian Ripley <ripley <at> stats.ox.ac.uk> writes:
>
> On Wed, 3 May 2006, Johannes Graumann wrote:
>
> > What's the canonical way of patching something like this in R? Redefining the
> > function at the start of your script?
>
> There are namespace issues, so the canonical way is to change the sources
> and re-build R. (Anthing which imports the graphics namespace will get
> the system version, not yours.)
>
Or (to avoid re-building R) perhaps you could just
make a copy of the function as mypie() and edit it?
mypie <- pie
fix(mypie) ## make edits
dump("mypie",file="mypie.R")
source("mypie.R")
??
Ben
More information about the R-help
mailing list