Rshiny throws error after publish the app

Without being able to see your data or your entire code within areproducible example, it's not possible to say for sure, but try changing aes_string to aes as a first step.