Hello Everyone,
I am trying to plot 4 lines using coefplot function.. However, coefplot gives me some errors when I try to run the following code. Moreover, the resulting graph have 4 lines and each line has diamonds. Any help will be greatly appreciated.
Many thanks
Oktay
coefplot mat1 mat2 mat3 mat4, keep(1.pre5m#2.highlease 1.pre4m#2.highlease 1.pre3m#2.highlease 1.pre2m#2.highlease 1.pre1m#2.highlease 1.post0m#2.highlease 1.post1m#2.highlease 1.post2m#2.highlease 1.post3m#2.highlease 1.post4m#2.highlease 1.post5m#2.highlease) vertical sort order(1.pre5m#2.highlease 1.pre4m#2.highlease 1.pre3m#2.highlease 1.pre2m#2.highlease 1.pre1m#2.highlease 1.post0m#2.highlease 1.post1m#2.highlease 1.post2m#2.highlease 1.post3m#2.highlease 1.post4m#2.highlease 1.post5m#2.highlease) p1(label(0-4 years) msymbol(d)) p2(label(5-9 years) msymbol(o)) p3(label(10-29 years) msymbol(t)) p4(label(30 years and longer) msymbol(X)) coeflabels(1.pre5m#2.highlease = "-5" 1.pre4m#2.highlease = "-4" 1.pre3m#2.highlease = "-3" 1.pre2m#2.highlease = "-2" 1.pre1m#2.highlease = "-1" 1.post0m#2.highlease = "t" 1.post1m#2.highlease = "+1" 1.post2m#2.highlease = "+2" 1.post3m#2.highlease = "+3" 1.post4m#2.highlease = "+4" 1.post5m#2.highlease = "+5", notick) yline(0) xtitle("Month") title("Bond yield spread by maturity") level(90) grid(none) graphregion(color(white)) bgcolor(white) mcolor(dark gray) msize(small) ciopts(lwidth(0.1) lcolor(dark gray))
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style 0-4 years not found in class labelstyle, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style 0-4 years not found in class labelstyle, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style 0-4 years not found in class labelstyle, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style 0-4 years not found in class labelstyle, default attributes used)
I am trying to plot 4 lines using coefplot function.. However, coefplot gives me some errors when I try to run the following code. Moreover, the resulting graph have 4 lines and each line has diamonds. Any help will be greatly appreciated.
Many thanks
Oktay
coefplot mat1 mat2 mat3 mat4, keep(1.pre5m#2.highlease 1.pre4m#2.highlease 1.pre3m#2.highlease 1.pre2m#2.highlease 1.pre1m#2.highlease 1.post0m#2.highlease 1.post1m#2.highlease 1.post2m#2.highlease 1.post3m#2.highlease 1.post4m#2.highlease 1.post5m#2.highlease) vertical sort order(1.pre5m#2.highlease 1.pre4m#2.highlease 1.pre3m#2.highlease 1.pre2m#2.highlease 1.pre1m#2.highlease 1.post0m#2.highlease 1.post1m#2.highlease 1.post2m#2.highlease 1.post3m#2.highlease 1.post4m#2.highlease 1.post5m#2.highlease) p1(label(0-4 years) msymbol(d)) p2(label(5-9 years) msymbol(o)) p3(label(10-29 years) msymbol(t)) p4(label(30 years and longer) msymbol(X)) coeflabels(1.pre5m#2.highlease = "-5" 1.pre4m#2.highlease = "-4" 1.pre3m#2.highlease = "-3" 1.pre2m#2.highlease = "-2" 1.pre1m#2.highlease = "-1" 1.post0m#2.highlease = "t" 1.post1m#2.highlease = "+1" 1.post2m#2.highlease = "+2" 1.post3m#2.highlease = "+3" 1.post4m#2.highlease = "+4" 1.post5m#2.highlease = "+5", notick) yline(0) xtitle("Month") title("Bond yield spread by maturity") level(90) grid(none) graphregion(color(white)) bgcolor(white) mcolor(dark gray) msize(small) ciopts(lwidth(0.1) lcolor(dark gray))
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style 0-4 years not found in class labelstyle, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style 0-4 years not found in class labelstyle, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style 0-4 years not found in class labelstyle, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style dark not found in class color, default attributes used)
(note: named style 0-4 years not found in class labelstyle, default attributes used)