Very basic question here as I\'m just starting to use R, but I\'m trying to create a bar plot of factor counts in ggplot2 and when plotting, get 14 little colored blips repr
Additionally, adding na.rm= TRUE to your geom_bar() will work.
ggplot(data = MyData,aes(x= the_variable, fill=the_variable, na.rm = TRUE)) +
geom_bar(stat="bin", na.rm = TRUE)
I ran into this issue with a loop in a time series and this fixed it. The missing data is removed and the results are otherwise uneffected.