where to add the "drop_na" command ?

ggplot(data=Final_data2) + geom_bar(mapping=aes(x=gender)

You can try the following:


ggplot(data = drop_na(Final_data2)) +
    geom_bar(mapping=aes(x=gender)

1 Like

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.