I can't fully explain why, but thanks to this issue reffering to this one , you need to print() explicitely your ggplot element by changing base with print(base) . It's seem to be an easy workaround. Those issues are old (2016-2018), I don't understand why it happen nowadays.