Re: [R] Show name of dataset in graph

2009-05-07 Thread S Ellison
The usual way of doing this in R functions is via deparse, as in the examples in ?deparse: fd<-function(x) plot(x, main=deparse(substitute(x))) q<-1:10 fd(q) as.character works for simple cases but is probably not the best option. Compare fd(log(q)) with fc<-function(x) plot(x, main=as.chara

Re: [R] Show name of dataset in graph

2009-05-07 Thread Richard . Cotton
> I?ve written a script to run several multivariate statistical analysis > automatically. > As one result a biplot and screeplot is produced. > Now I?d like to display the name of the inputdatset as part of the title of > these graphics and I do not want to enter it each time I run the script. > H