file extension as a parameter in ggsave

allow specification of file extension to inform which device to pick
(e.g. in case trying to save to a temporary file without file
extension).
ggsave documentation update

re - roxygenized