I get this error after I filter a simple datafarme, from 12 obs to 9, both with 2 variable...
tmp_Type <- c("A", "B", "C","D", "E", "F", "G", "H", "I", "J", "K", "L")
tmp_Sum <- c(380000.2,0,1500,4532,2,34567,29344,545,838.5,1000,0,0)
tmp_Sum <- round(tmp_Sum)
sum(tmp_Sum, na.rm=T)
tmp_Summary <- data.frame(tmp_Type, tmp_Sum) # create df
summary(tmp_Summary)
ggplot(data=tmp_Summary, aes(x=tmp_Type, y=tmp_Sum)) +
geom_histogram (stat = "identity", aes(fill= tmp_Type)) +
geom_text (label = (tmp_Sum), vjust=-1, hjust=0.5)
tmp_Summary <- tmp_Summary %>% filter(tmp_Sum > 0)
summary(tmp_Summary)
ggplot(data=tmp_Summary, aes(x=tmp_Type, y=tmp_Sum)) +
geom_histogram (stat = "identity", aes(fill= tmp_Type)) +
geom_text (label = (tmp_Sum), vjust=-1, hjust=0.5)