ggplot :Error in as.Date.numeric(value) : 'origin' must be supplied

You probably need to use scale_x_date(), rather than scale_x_continuous().

3 Likes