Hi all,
I have a dataset containing a variety of firms operating in some countries and year. The dataset looks approximately like this:
What I'm trying to do is to to create a bar chart for each year showing the number of firms (y axis) and the country they belong to (x axis). The issue I have is that when I take the subset for each year, some countries disappear as I don't have observations within that year, therefore the bar chart would display only countries for which I have observations in that year. For example, in the table above, when plotting for 2001, the bar chart would exclude BE as there are no observations for BE in 2001, What i would like to do is to include BE and show it has 0 observations
How could I solve this issue?
Thanks in advance for your help.
I have a dataset containing a variety of firms operating in some countries and year. The dataset looks approximately like this:
| FIRM ID | COUNTRY | YEAR |
| Firm 1 | AT | 2001 |
| Firm 2 | BE | 2003 |
| Firm 3 | BE | 2002 |
| Firm 1 | AT | 2002 |
What I'm trying to do is to to create a bar chart for each year showing the number of firms (y axis) and the country they belong to (x axis). The issue I have is that when I take the subset for each year, some countries disappear as I don't have observations within that year, therefore the bar chart would display only countries for which I have observations in that year. For example, in the table above, when plotting for 2001, the bar chart would exclude BE as there are no observations for BE in 2001, What i would like to do is to include BE and show it has 0 observations
How could I solve this issue?
Thanks in advance for your help.

Comment