See https://github.com/yhat/ggplot/issues/175. Your `fun` variable ends up in `self.manual_aes`and thats in my understanding used for setting a mapping to only (one) value, which is not in the dataframe.