Hi,
I am trying to make a simple graph of union membership rate over the 3 years 2001, 2009 and 2023. As I have repeated cross sectional data, I have not merged my datasets. Instead I have created a new file and inputted the membership rates manually as the code below shows:
*
input year union_membership
2001 30.4%
2009 28.7%
2023 26.3%
end
line union_membership year, title("Union Membership Rate")
ytitle("Unionization Rate (%)") xtitle("Year")
xticks("2001 2009 2023") xticklabel("2001" "2009" "2023")
*
When graphing this, it seems to give me all the years from 2000 to 2025, but I want distinctly 3 points at 2001, 2009 and 2023. Does anyone know how to do this? I have attached an image of the graph below.
I am trying to make a simple graph of union membership rate over the 3 years 2001, 2009 and 2023. As I have repeated cross sectional data, I have not merged my datasets. Instead I have created a new file and inputted the membership rates manually as the code below shows:
*
input year union_membership
2001 30.4%
2009 28.7%
2023 26.3%
end
line union_membership year, title("Union Membership Rate")
ytitle("Unionization Rate (%)") xtitle("Year")
xticks("2001 2009 2023") xticklabel("2001" "2009" "2023")
*
When graphing this, it seems to give me all the years from 2000 to 2025, but I want distinctly 3 points at 2001, 2009 and 2023. Does anyone know how to do this? I have attached an image of the graph below.
Comment