Hi all,

I am trying to include only a specific range of values in my graph for my x-axis.

Code:
twoway (connected fidelity week if ETHNICITY==1, mcol("blue")) (connected fidelity weeks if ETHNICITY==4, mcol("purple"))
variable
weeks
is the x-variable and it ranges from 10-45 but I only want to include the values from 20-40

- I was thinking of creating a variable
Code:
weeks1
that only includes
Code:
week
values from 20-40 but I am not sure how to do this. Additionally, is there is perhaps an easier way to do this?


All help is very appreciated.

Blessing