Hello,
I would like to use two line styles for the same graph to denote value above and below a certain threshold: twoway (tsline var if var<=1) (tsline var if var>1, lpattern(dash))
I also tried creating two variables, one for values <=1 and another for values >1. But in both cases I run into the problem that - because the values for each variable to do not occur continuously - I get different shapes than if I were to just draw one line for all values. What I would like is to have the same shape as when I don't split it, but with a dashed line for values above 1.
Could anyone suggest a solution?
Many thanks!
Related Posts with Dashed line graph for parts of the line
New Variable for Average Value of First Half of ObservationsGood morning, I would like to generate a newvar that returns the average of the 'rating' variable, …
collect: Manipulate rows and columns?I am trying to learn Stata's -collect- and to manipulate tables. I find the manipulating part hard. …
Problem with weight use and specific commandsDear Statalists, I am aware that I am creating an unconvential and unusual post, and apologize in a…
Using joinby to combine monthly and yearly panel datasetsHi everybody I have a quick (maby redundant) question about joinby. I have many different panel dat…
Inconsistency between odds ratios and marginals in growth curve modelHi all, I am attempting to study the gender gap in the life-course evolution of political interest u…
Subscribe to:
Post Comments (Atom)
0 Response to Dashed line graph for parts of the line
Post a Comment