Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Bar graph


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Bar graph
Date   Tue, 4 Jun 2013 19:15:35 +0100

Good example.

By the way, I think it's fairly crazy to use O deg Fahrenheit as the
base of a bar chart, a point I have made previously to StataCorp.   32
deg F perhaps, or even better just use -graph dot-.

(Reminder for people in most countries of the world: use of Fahrenheit
temperatures is in practice largely confined to the USA.)
Nick
[email protected]


On 4 June 2013 19:09, Friedrich Huebler <[email protected]> wrote:
> The graph in my example can be used to support Nick's arguments
> against such representations of data. The difference between January
> and July temperatures is more obvious in the original graph on the
> Stata website.
>
> http://www.stata.com/support/faqs/graphics/gph/graphdocs/horizontal-bar-chart-with-multiple-bars-graphed-over-another-variable/
>
> Friedrich
>
> On Tue, Jun 4, 2013 at 11:00 AM, Friedrich Huebler <[email protected]> wrote:
>> Jörg,
>>
>> You can start with the examples on the Stata website.
>>
>> http://www.stata.com/support/faqs/graphics/gph/graphdocs/horizontal-overlaid-twoway-bar-plots/index.html
>> http://www.stata.com/support/faqs/graphics/gph/graphdocs/horizontal-bar-chart-with-multiple-bars-graphed-over-another-variable/
>>
>> Let's modify the second graph to draw the data like in the first graph.
>>
>> . webuse citytemp
>> . replace tempjan = -1 * tempjan
>> . collapse tempjan tempjuly, by(region)
>> . twoway bar tempjan region, horizontal || bar tempjuly region,
>> horizontal ylabel(1 "NE" 2 "N Cntrl" 3 "South" 4 "West", angle(0))
>> ytitle("") xlabel(-50 "50" 0 "" 50 "50")
>>
>> Friedrich
>>
>> On Tue, Jun 4, 2013 at 10:43 AM, Nick Cox <[email protected]> wrote:
>>> I wrote a program -slideplot- (SSC) a while back.
>>>
>>> I am no longer fond of this approach, so have not really developed it
>>> since.  But the program is still lurking there, heedless of my lack of
>>> affection.
>>>
>>> An overarching comment is that if -graph hbar- gets awkward, you
>>> should switch to -twoway rbar-.
>>> Nick
>>> [email protected]
>>>
>>>
>>> On 4 June 2013 15:19, Jörg Eulenberger <[email protected]> wrote:
>>>>
>>>> Dear Statalisters,
>>>> i want to draw a graph like a Agepyramid to compare two groups, like this:
>>>> http://www.martensville.ca/images/pages/N211/age%20pyramid.jpg
>>>>
>>>>  But i don't want on the left side the Agegroups. I need on the left
>>>> side different Items.  Each row should show the values of one item, on
>>>> the one side the value of man and on the otherside the value for woman.
>>>>
>>>> The Graph i want is on page 23:
>>>> http://wcms.uzi.uni-halle.de/download.php?down=13415&elem=2248245
>>>>
>>>> Know every one a solution or a graph command?
>>>> Thanks a lot,
>>>> Jörg
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index