Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: semi 3D graphs


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: semi 3D graphs
Date   Wed, 26 Nov 2003 16:18:22 -0000

That's an interesting graph. I'm thinking that
the white space is a _feature_...

Trivially, blocks like that after -twoway-
can be built up like this

forval i = 1/15 {
	local G "`G' (sc fathage mothage if pgr == `i', msym(S) mcol(gs`i')
msize(large))"
}

Nick
[email protected]

Lars Korsholm

> I am investigating how to make 3D grafphs with stata.
> The path I have taken is some kind of pseudo 3D graphs
> where the third scale is given by a color intensity.
> see an example on
> http://www.biostat.sdu.dk/~korsholm/TilAndre/pgr4.eps
> http://www.biostat.sdu.dk/~korsholm/TilAndre/pgr4.pdf
>
> As you see they are not perfect.
> they were created with:
>
> twoway ///
>  (sc fathage mothage if pgr==1, msym(S) mcol(gs1))
> msize(large) ) ///
>  (sc fathage mothage if pgr==2, msym(S) mcol(gs2))
> msize(large) ) ///
>  (sc fathage mothage if pgr==3, msym(S) mcol(gs3))
> msize(large) ) ///
>  (sc fathage mothage if pgr==4, msym(S) mcol(gs4))
> msize(large) ) ///
>  (sc fathage mothage if pgr==5, msym(S) mcol(gs5))
> msize(large) ) ///
> ....
>  (sc fathage mothage if pgr==15, msym(S) mcol(gs15))
> msize(large) ) ///
>  , title("smothed estimates - graph 4") xsize(6) ysize(7)
> legend(off)
>
> Is there any better suggestions on how to make semi 3D plots
> via 2D plots and color intensity as the third demension.
>
> especial I would like to get rid of the white space inbetween
> and I would like to have a more smooth/automatik method.
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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