file extension as a parameter in ggsave

variable name fix