When there are variables in the transformation function in sec_axis, the plot changes after the variable changes. ``` r ##### ggplot bug ##### library(ggplot2) temp_data <- data.frame(x=1:4, y=1:4) temp_scale <- 1 a <- ggplot() + geom_point(data = temp_data, aes(x=x, y=y)) + scale_y_continuous(sec.axis = sec_axis(~.*temp_scale)) a ```  ``` r temp_scale <- 4 a ```  <sup>Created on 2019-02-14 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1)</sup>