I found after I packaged the plot. It did not show the graph in the rstudio?
library(ggplot2) variable<-10 change_variable<-function(variable){ mtcar