In R, some functions are polymorphic. That means, their behavior is dependent on the type of the argument fed to the function.
An example of a polymorphic function is
plot
: it produces a different graph if it is given a
vector, a
factor,
data frame, a linear regression model, a table etc.