Bar plot for categorical variable

Hello,

I would like to draw a bar chart that for every weeks count the number of “YES” or “NO” for a specific variable.

my data set is like :

Week Variable
1 YES
1 NO
1 YES
2 NO
… …

And then i want something like this :

But for long hours I don’t find the way to make it looking like I want !

Hi,

I do not understand what you are trying to do. If you added an example code, maybe your question would be more clear.

Meanwhile you could take a look at this, sounds more ore less what you want to do but skipping the Dash part: