Statalist


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

Re: st: twoway scatter ..., yscale(log) with axis on log and arithmetic scales


From   "Scott Merryman" <[email protected]>
To   [email protected]
Subject   Re: st: twoway scatter ..., yscale(log) with axis on log and arithmetic scales
Date   Sat, 18 Oct 2008 06:47:13 -0500

Something like this?

sysuse auto,clear

scatter mpg gear, ms(i) || scatter mpg gear, xscale(log axis(2))
yscale(log axis(2)) yaxis(2) xaxis(2)

Scott


On Fri, Oct 17, 2008 at 11:19 AM, Joana Cunha-Cruz <[email protected]> wrote:
>
> Dear Statalist members,
>
>  How do we add the log scale on the opposite axis when using twoway scatter ..., yscale(log)?
>
> When using:
> twoway scatter y x  || line ypredictrate x, xscale(log) yscale(log)
>  the plotted data is on the log scale (that's what I want),
> and the left axis shows the labels on the arithmetic scale...
>
> Now, how can I add an axis on the right and top with the label of the numbers on the log scale?
>
> I would appreciate if you can help me.
>
> Thanks,
> Joana Cunha-Cruz
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index