Per my note in your other thread, this will be much easier to troubleshoot if you have a reproducible example – with the libraries you've loaded, the code you've run, and the output (all of which is made easier using the reprex package, linked to in my reply, below):