trying to remove NA from the graph but it isn't working this is code i have
ggplot(con_threat, aes(fill= category, y=n, x=report_group.x)) +
geom_bar(position="fill", stat="identity", na.rm = TRUE) +
labs(x = 'Marine animal type', y = 'Percentage of animals in each status', title = 'Conservation status of 4 different mairne animals')+
scale_fill_brewer(palette="Spectral")+
theme(axis.text.x = element_text(angle = 30, vjust = 1, hjust=1))
This is not working
I also trying to flip the graph so that 0.0 is at the bottom and 1 is at the top
Any advice would be great graph of marine groups that are in need of protection