'geom_bar missing values that want to be included in legend/search terms
enter image description hereDoing basic literature meta-analysis to demonstrate search terms and how they have changed over time. Using script:
ggplot(data = df_meta, aes(x = Year, y = Count, fill = Search.terms))+geom_bar(stat="identity")
Three search terms were not found to give any literature results, which is an important part of the results, so they were given the count of 0. All other results (e.g. paper year/titles) were given count of 1. However, I receive the warning error:
Warning message: Removed 3 rows containing missing values (position_stack)
However, I would like these missing values to still come up on the Search terms legend (see picture). Any advice on how to correct this?
I've just tried to look up any other similar questions but can't find exactly what I'm looking for.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
