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