Maybe I am wrong, but I think TRUE should not appear as a level inside the Class factor. > levels(ggstatsplot::Titanic_full$Class) [1] "1st" "2nd" "3rd" "Crew" "TRUE"