Hello
Specifically I am using serrbar which I understand has the same options as graph twoway. I have 150 cases for the x axis, but these are grouped, so that I want marker #1 to be black, #2 dark grey, #3 medium grey, #4 light grey, #5 white. I then want to repeat this colouring across all 150 cases. I can do this manually with the graph editor, but I have to produce many graphs, so would it would take an inordinate amount of time. Is there a way to do this either? 1. Manually specifying a colour for each marker 2. Generating a variable that runs 1-5 across the the 150 cases, then using this to specify the colours of all the 1s, 2s, 3s, etc.? The second option sounds like less work but I'll happily take either.
Many thanks
Dan
Related Posts with Changing the colour of individual markers in twoway scatter graph
Dropping observations if entity does not exist in both wavesHi, I am new to Stata and trying to undertake a task for a stat class. I have a dataset containing…
keep ifHi, I want to use " keep if" to keep a subset of observations in my dataset, but I get an error: Typ…
Making balanced panel by dropping observation based on a certain variableI want to make a balanced panel based on my ln_wage outcome variable. In my data most of data has 22…
IF statement using a local string variableI have a code that looks like the below (minimum working example). A loop that loops through 2 scena…
How can we set Stata so that potential commands would pop up downward whenever we type in a string or word?Hey colleagues, Today I was asked a question by a student of my intro. stat. using Stata class. Ple…
Subscribe to:
Post Comments (Atom)
0 Response to Changing the colour of individual markers in twoway scatter graph
Post a Comment