Table of Contents

argument “env” is missing, with no default

Error in exists(name, envir = env, mode = mode) : 
  argument "env" is missing, with no default

This error occurs when ggplot doesn't no the x and y aesthetic.

Resolution: when defining a plot, define it with the aesthetic x and y by default

p <- ggplot(myDataFrame, aes(myVariableX,myVariableY))