Hello,
being pretty new on Stata (version 17), I would appreciate your help.
I have a dataset with british total and "specific" (customs, stamp duties...) receipts from 1700 to 1900, here there is a sample with the first 25 observations:
All variables, except for 'anno', are percentage value of total receipts, so they sum up to 100. The last variable (perc_tasse_redd_ricc_introiti) has missing value because there were no income tax in England prior to 1798. I would like to create a stacked area chart that shows the percentage composition of total receipts.
I tried with the following code:
but area are overlapped and they don't sum up to 100, as you can see in the attached picture.

Can someone help me?
Thank you.
being pretty new on Stata (version 17), I would appreciate your help.
I have a dataset with british total and "specific" (customs, stamp duties...) receipts from 1700 to 1900, here there is a sample with the first 25 observations:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input int anno float(perc_customs_introiti perc_accise_introiti perc_stamp_duty_introiti perc_tasse_fondiarie_introiti perc_altre_tasse_introiti perc_tasse_redd_ricc_introiti) 1700 36.616867 24.26046 2.1486816 32.379025 4.5949645 . 1701 38.43966 26.91642 2.3244312 29.33358 2.985905 . 1702 29.66581 29.44268 1.8395478 36.047203 3.00476 . 1703 28.45495 31.285954 1.635186 35.222176 3.40173 . 1704 26.879017 31.56375 1.7043867 36.355595 3.4972525 . 1705 21.743856 33.568054 1.5973535 39.01701 4.073724 . 1706 24.288326 31.84824 1.6179712 38.53585 3.709609 . 1707 24.56408 31.992044 1.637297 37.3942 4.412377 . 1708 23.734997 31.766684 1.7906865 38.43015 4.2774844 . 1709 25.174925 30.00575 1.8211445 39.49966 3.4985144 . 1710 24.485016 30.191654 1.868757 39.91779 3.536778 . 1711 22.58868 32.060135 2.283298 40.13155 2.93634 . 1712 25.49948 32.59208 3.0055594 36.223072 2.6798124 . 1713 25.91516 36.66358 1.9294304 30.575745 4.916083 . 1714 29.96764 39.1632 2.2792418 23.09755 5.492372 . 1715 29.51447 41.76304 2.501912 21.39675 4.823831 . 1716 27.2313 40.71797 2.2914875 26.17369 3.5855546 . 1717 27.90652 36.977215 2.21598 29.537296 3.362984 . 1718 27.597136 39.89545 2.276095 26.531116 3.7001975 . 1719 27.068563 40.32622 2.3933446 25.835007 4.3768697 . 1720 25.939896 39.80259 2.680255 24.81242 6.764836 . 1721 24.28369 42.2039 2.3404963 26.211895 4.96002 . 1722 24.88647 44.21716 2.331956 24.338257 4.2261586 . 1723 27.096666 46.19822 2.45453 20.54143 3.709161 . 1724 28.278706 45.70643 2.611796 20.486275 2.916792 . end
I tried with the following code:
Code:
twoway (area perc_customs_introiti perc_accise_introiti perc_stamp_duty_introiti perc_tasse_fondiarie_introiti perc_tasse_redd_ricc_introiti anno)
Can someone help me?
Thank you.
Comment