Hi everyone,
I have to construct a time-series plot in which I would like to have on the y-axis the new PV adoptions, by month. On the x-axis, the date from January 2021 to November 2023.
Basically, I have data in which I observe electricity tariff from each ID, their contract types. etc. I want to plot the new PV adopters by month, but I don't know how to proceed, as this is the first time I want to plot time-series.
Here is a small -dataex- :
I want a graph in the same vein as the one attached. Could anyone please give me an insight about it?
Thank you in advance.
Michael
I have to construct a time-series plot in which I would like to have on the y-axis the new PV adoptions, by month. On the x-axis, the date from January 2021 to November 2023.
Basically, I have data in which I observe electricity tariff from each ID, their contract types. etc. I want to plot the new PV adopters by month, but I don't know how to proceed, as this is the first time I want to plot time-series.
Here is a small -dataex- :
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long id str19 id_date double(date_contract_start date_contract_end date_pv_install) 1059 "1059_18889_21639" 18889 21639 22973 1059 "1059_21640_21682" 21640 21682 22973 1059 "1059_21683_21700" 21683 21700 22973 1059 "1059_21701_22066" 21701 22066 22973 1059 "1059_22067_22431" 22067 22431 22973 1059 "1059_22432_22461" 22432 22461 22973 1059 "1059_22462_22645" 22462 22645 22973 1059 "1059_22646_22676" 22646 22676 22973 1059 "1059_22677_22735" 22677 22735 22973 1059 "1059_22736_22888" 22736 22888 22973 1059 "1059_22889_22964" 22889 22964 22973 1059 "1059_22965_23010" 22965 23010 22973 1059 "1059_23011_." 23011 . 22973 1089 "1089_18791_19904" 18791 19904 21875 1089 "1089_19905_20119" 19905 20119 21875 end format %td date_contract_start format %td date_contract_end format %td date_pv_install
Thank you in advance.
Michael
Comment