Density plot added as an R S4 generic method. The density function
itself seems to need special handling as it was expecting a "numeric"
in its first argument.