-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcolor_style.do
38 lines (30 loc) · 1.56 KB
/
color_style.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
sysuse auto, clear
color_style s2
font_style default
set scheme white
graph pie mpg, over(rep78)
graph export "C:\Users\Fernando\Documents\GitHub\stataviz\figures\pie_1.png", as(png) name("Graph") height(400) replace
color_style tableau
graph pie mpg, over(rep78)
graph export "C:\Users\Fernando\Documents\GitHub\stataviz\figures\pie_2.png", as(png) name("Graph") height(400) replace
color_style egypt
graph pie mpg, over(rep78)
graph export "C:\Users\Fernando\Documents\GitHub\stataviz\figures\pie_3.png", as(png) name("Graph") height(400) replace
color_style egypt, n(5)
graph pie mpg, over(rep78)
graph export "C:\Users\Fernando\Documents\GitHub\stataviz\figures\pie_4.png", as(png) name("Graph") height(400) replace
color_style #2b2d42 #8d99ae #edf2f4 #ef233c #d90429
graph pie mpg, over(rep78)
graph export "C:\Users\Fernando\Documents\GitHub\stataviz\figures\pie_5.png", as(png) name("Graph") height(400) replace
two scatter mpg price if rep78==1 || ///
scatter mpg price if rep78==2 || ///
scatter mpg price if rep78==3 || ///
scatter mpg price if rep78==4 || ///
scatter mpg price if rep78==5
graph export "C:\Users\Fernando\Documents\GitHub\stataviz\figures\scatter_1.png", as(png) name("Graph") replace
font_style Harrington
* Hogwarts Colors
color_style #b20003 #044d0f #dfb000 #004485 #151515
graph pie mpg, over(rep78) title(Hogwarts School) ///
legend(order(1 "Gryffindor" 2 "Hufflepuff" 3 "Ravenclaw" 4 "Slytherin" 5 "Muggles"))
graph export "C:\Users\Fernando\Documents\GitHub\stataviz\figures\pie_6.png", as(png) name("Graph") replace height(400)