Dear Stata expert,
I have a dataset of discrete prices of five product (each product has roughly 12 million observations), and I would like to
(1) generate histogram (percent) of price of each product
(2) convert histogram to line (which is to connect the center of the top of each bar)
(3) overlay lines by product type
I know I can either:
(1) generate and overlay histogram first, and using "visual graphic editor" to change histogram to line; or
(2) generate a frequency variable and graph twoway line.
However I am wondering if there's code that can help me directly changing histogram to line graph?
Any help is greatly appreciated.
CHT
I have a dataset of discrete prices of five product (each product has roughly 12 million observations), and I would like to
(1) generate histogram (percent) of price of each product
(2) convert histogram to line (which is to connect the center of the top of each bar)
(3) overlay lines by product type
I know I can either:
(1) generate and overlay histogram first, and using "visual graphic editor" to change histogram to line; or
(2) generate a frequency variable and graph twoway line.
However I am wondering if there's code that can help me directly changing histogram to line graph?
Any help is greatly appreciated.
CHT
Comment