Hello, is there a way to show NA counts in geom_bar when variable is of type "double" or do I need to convert it to factor?
Also, is there a way to show the counts on the bars?
the code is below is not working:
ggplot(df)+
aes_string(x=names[4])+
geom_bar(fill="steelblue")+
geom_text(aes(y = after_stat(count)),vjust=1.6, color="white", size=3.5)+
labs(y="counts")+
scale_x_discrete(na.translate = TRUE)+
theme_bw()