Delete NA-Bar from boxplot

Dear all, unfortunately I am not able to remove the NA-bar from the boxplot.
I tried some different codes, but it did not work.
Can anyone help me? Thanks in advance.
Original Plot:
argatrobanstudy2 %>%
ggplot(aes(x=reorder(kateg1, ECA_CT, na.rm = TRUE),y=ECA_CT))+
geom_boxplot() +
labs(y="y-axis", x="X-axsis")

what I tried so far:
boxplot(ECA_CT~kateg1, data = argatrobanstudy2, subset = (ECA_CT!="NA"), outline=F, na.rm=TRUE, ylab="y-ax", xlab ="x-axis", main="test", ylim=range(ECA_CT~kateg1))
with the following error:
Error in min(x, na.rm = na.rm) : invalid 'type' (list) of argument

Filtering the NA values can be done with the is.na function.

This topic was automatically closed 21 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.