Consider the following function:
plotSmth <- function(...) ggplot2::ggplot(...) + 
  expand_limits(x =c(0), y =0) 
Is it possible to override the values set by the expand_limits() of the plotSmth
I tried something like:
plotSmth(thisIsData, aes(x=xhere, y=yhere, colour=as.factor(foo), lty=as.factor(bar)  )  ) +
  expand_limits(x=c(10), y=c(0, 25))
but it still did not override the 0 for the x axis set in the plotSmth's expand_limits().
Is there a way to achieve this?
 
    