Hello Stata people;
I'm using the version 13.1 os Stata while working with this dataset:
This data shows the evolution and structure of tax revenues for a given economy. The first 7 variables are expressed in %, the 8th is expressed in monetary units. The observations are annual.
The goal is to draw a histogram that is both grouped by year and stacked for the first 7 variables, but for the last variable (expressed in monetary units), I want it drawn as a line, all in the same one graph.
Is there a solution to this please?
With many thanks!
I'm using the version 13.1 os Stata while working with this dataset:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int anne float(impotssurlessocitsptroliresen droitsdedouaneen impotssurlessocitsnonptroliresen droitsdeconsommationen diversimpotsetdroitsen taxesurvaleurajouteen impotsurlerevenuen) long totaldesrecettesfiscalesenmillio 2022 4 5 8.2 10.2 15.5 28.7 28.4 35448 2023 2.5 4.8 9.4 10.2 16.8 27.7 28.6 39200 2024 3 5 10 9.5 15.9 26.9 29.6 41755 2025 1.5 5 12.6 9.6 15.6 27 28.7 44523 2026 1.3 5 12.9 9.6 15.4 27 28.5 47773 end format %ty anne
The goal is to draw a histogram that is both grouped by year and stacked for the first 7 variables, but for the last variable (expressed in monetary units), I want it drawn as a line, all in the same one graph.
Is there a solution to this please?
With many thanks!

Comment