Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Two-way graph for panel data

    Dear,

    I want to plot a variable in panel data.
    Below is an example of my data.

    Code:
    year province total district
    2003 A           62     1
    2003 B           65     2
    2003 C           70     3
    2004 A           45     1
    2004 B           50     2
    2004 C           60     3
    2005 A           43     1
    2005 B           64     2
    2005 C           75     3
    I'd like to plot line graphs of the total toward year for each province on one page in different colors.

    When I use a command
    Code:
    tsline total year, by(district)
    It generates three graphs.

    Would you help me about this topic?

    Best,
    Last edited by Woosung Kim; 21 Jul 2022, 00:18.

  • #2
    Duplicate post. Follow https://www.statalist.org/forums/for...for-panel-data if interested.

    Comment

    Working...
    X