Hi everyone,
I would like to do a plot (basically I am using the beautiful -joy_plot- by FernandoRios, but if you have other better suggestions, I am obviously more than open to it) and select the biggest 5 values please.
Also, if possible, I would like to receive some plotting feedback, as my graph is not readable, as there is many categories,
If there are more suitable graphs for that, please do not hesitate to correct me.
Here is the plot:

Could anyone give me a better suggestion, or advices to improve this graph please?
Thank you in advance!
Michael
I would like to do a plot (basically I am using the beautiful -joy_plot- by FernandoRios, but if you have other better suggestions, I am obviously more than open to it) and select the biggest 5 values please.
Also, if possible, I would like to receive some plotting feedback, as my graph is not readable, as there is many categories,
If there are more suitable graphs for that, please do not hesitate to correct me.
Code:
. tab tariff_ekon_id_encod Elec. | Tariff | Types, | Encoded | Freq. Percent Cum. ------------+----------------------------------- 20A | 18,384 1.44 1.44 20DHA | 165,269 12.92 14.36 20DHS | 1,183 0.09 14.45 20TD | 1,039,954 81.31 95.77 20a | 17 0.00 95.77 21A | 2,345 0.18 95.95 21DHA | 5,925 0.46 96.41 21DHS | 43 0.00 96.42 30 | 11,907 0.93 97.35 30TD | 31,832 2.49 99.84 31 | 424 0.03 99.87 61A | 16 0.00 99.87 61TD | 1,536 0.12 99.99 62A | 1 0.00 99.99 62TD | 29 0.00 99.99 63TD | 17 0.00 100.00 64TD | 51 0.00 100.00 No | 1 0.00 100.00 ------------+----------------------------------- Total | 1,278,934 100.00 .
Code:
preserve recode tariff_ekon_id_encod (5 6 10 = 5) // recode these values as they contain only respectively 9, 7 and 1 observations joy_plot kW_power_p1 if tariff_2 == 1, scheme(white_tableau) over(tariff_ekon_id_encod) color(%50) alegend gap0 range(0 15) /// title("{bf}Density Plot", pos(11) size(2.75)) /// subtitle("Tariff Types, 1{sup:st} Period", pos(11) size(2)) /// ytitle("Density", size(2) orient(horizontal)) /// ylabel(, nogrid labsize(2)) /// xlabel(0(1)15, labsize(tiny) nogrid format(%9.0fc)) /// xtitle("Contracted Powers", size(2)) graph export "../figures/distr_tariff_types_kdens.png", replace graph export "../figures/distr_tariff_types_kdens.pdf", replace restore
Could anyone give me a better suggestion, or advices to improve this graph please?
Thank you in advance!
Michael
Comment