Belen Chavez
  • Introduction
  • About
  • Data Blog
  • Calligraphy
  • Teaching

Gcharts

Stata scheme

7/28/2016

2 Comments

 
In this example, we'll be customizing options so that our graph looks a lot more familiar. 

sysuse sp500, clear

/*Stata Scheme*/
gchart line high low date, ///
        lcolor(navy maroon) title("S&P 500 - Stata Color Scheme", color(#1e2d53) size(34) font("Arial") ) ///
        xtitle("Date", color(black) font(Arial) italic) ytitle("Price", color(black) font(Arial)) ///
        graphregion(fcolor(#eaf2f3, html)) plotregion(fcolor(white)) ///
        xlab(#7, glcolor(white)) ylab(#6,glcolor(#eaf2f3) angle(90)) legend(position(bottom))
                
Giving us the following graph:
We plan on adding a scheme(stata) option in a future release of gcharts. In the meantime, help files will list the color/axis/grid options for rendering Stata-looking graphs.
2 Comments
Chris Mims
8/1/2016 09:04:26 am

At first I thought it was another Stata Chart until I hovered over the lines. Pretty awesome way to take things to the next level!

Reply
Xiaodong
1/4/2017 12:12:47 pm

Really impressive! How do I install gchart into STATA? I tried "findit gchart" but nothing returned. Thanks!

Reply

Your comment will be posted after it is approved.


Leave a Reply.

    About

    gcharts is a a program we co-wrote. This page is a  portfolio of some basic examples. We will be adding more (complicated) examples shortly.

    For more information:
    Check out our Stata presentation here

    Or read this blog post introducing gcharts

    Authors

    Belen Chavez
    William Matsuoka

    Last updated:
    July 2016

    Examples

    All
    Area
    Bar
    Calendar
    Line
    Scatter

Powered by Create your own unique website with customizable templates.
  • Introduction
  • About
  • Data Blog
  • Calligraphy
  • Teaching