Skip to content
Prev 280311 / 398506 Next

modify the name of axis of an R function

On Dec 15, 2011, at 1:53 AM, plocq wrote:

            
Usually this would be accomplished with

plot(fit, main="main title", xlab="X-axis lable", ylab="y-axis label")
Seems unlikely that this would be needed.
The way to address this, if you are committed to this path, is to  
first determine the class of the fit-object and then to look for a  
plot method with methods(plot). If you see an S3 method you can call  
up the code with:

evd:::plot.fit-class  # when "fit-class" is the value you got with  
class(fit)

If it's an S4 method, then it's much more convoluted, and over time  
I've learned not to try.