Hi There,
Does anyone know why when you go about 19 in labeling y's for a line graph, it is no longer recognized and the legend provides only the label of the variable?
Example: When I get to Slovakia, it simply labels it and the remaining variables as the name of the variable and not Slovakia.
twoway (line log_IQVIA_pCap year if Country=="AUT", lpattern(dash) lcolor(green)) ///
(line log_IQVIA_pCap year if Country_Code=="BEL", lpattern(dash) lcolor(khaki)) ///
(line log_IQVIA_pCap year if Country_Code=="CZE", lpattern(dash) lcolor(lavender)) ///
(line log_IQVIA_pCap year if Country_Code=="DNK", lpattern(dash) lcolor(lime)) ///
(line log_IQVIA_pCap year if Country_Code=="EST", lpattern(dash) lcolor(ltbluishgray)) ///
(line log_IQVIA_pCap year if Country_Code=="FIN", lpattern(dash) lcolor(ltkhaki)) ///
(line log_IQVIA_pCap year if Country_Code=="FRA", lpattern(dash) lcolor(magenta)) ///
(line log_IQVIA_pCap year if Country_Code=="DEU", lpattern(dash) lcolor(maroon)) ///
(line log_IQVIA_pCap year if Country_Code=="GRC", lpattern(dash) lcolor(midblue)) ///
(line log_IQVIA_pCap year if Country_Code=="HUN", lpattern(dash) lcolor(midgreen)) ///
(line log_IQVIA_pCap year if Country_Code=="IRL", lpattern(dash) lcolor(mint)) ///
(line log_IQVIA_pCap year if Country_Code=="ITA", lpattern(dash) lcolor(navy)) ///
(line log_IQVIA_pCap year if Country_Code=="LVA", lpattern(dash) lcolor(olive)) ///
(line log_IQVIA_pCap year if Country_Code=="LTU", lpattern(dash) lcolor(olive_teal)) ///
(line log_IQVIA_pCap year if Country_Code=="LUX", lpattern(dash) lcolor(orange)) ///
(line log_IQVIA_pCap year if Country_Code=="NLD", lpattern(dash) lcolor(orange_red)) ///
(line log_IQVIA_pCap year if Country_Code=="POL", lpattern(dash) lcolor(pink)) ///
(line log_IQVIA_pCap year if Country_Code=="PRT", lpattern(dash) lcolor(purple)) ///
(line log_IQVIA_pCap year if Country_Code=="SVK", lpattern(dash) lcolor(sand)) ///
(line log_IQVIA_pCap year if Country_Code=="SVN", lpattern(dash) lcolor(sandb)) ///
(line log_IQVIA_pCap year if Country_Code=="ESP", lpattern(dash) lcolor(sienna)) ///
(line log_IQVIA_pCap year if Country_Code=="SWE", lpattern(dash) lcolor(stone)) ///
(line log_IQVIA_pCap year if Country_Code=="GBR", lpattern(dash) lcolor(teal)) if year > 2009, ///
title("log of per capita IQVIA revenue by Top20 Pharma - EU and Canada") ///
legend(label(1 "Austria")) ///
legend(label(2 "Belgium")) ///
legend(label(3 "Czech")) ///
legend(label(4 "Denmark")) ///
legend(label(5 "CostaRica")) ///
legend(label(6 "Estonia")) ///
legend(label(7 "Finland")) ///
legend(label(8 "France")) ///
legend(label(9 "Germany")) ///
legend(label(10 "Greece")) ///
legend(label(11 "Hungary")) ///
legend(label(12 "Ireland")) ///
legend(label(13 "Italy")) ///
legend(label(14 "Latvia")) ///
legend(label(15 "Lithuania")) ///
legend(label(16 "Luxembourg")) ///
legend(label(17 "Netherlands")) ///
legend(label(18 "Poland")) ///
legend(label(19 "Portugal")) ///
legend(label(20 "Slovakia")) ///
legend(label(21 "Slovenia")) ///
legend(label(22 "Spain")) ///
legend(label(23 "Sweden")) ///
legend(label(24 "United Kingdom"))
Does anyone know why when you go about 19 in labeling y's for a line graph, it is no longer recognized and the legend provides only the label of the variable?
Example: When I get to Slovakia, it simply labels it and the remaining variables as the name of the variable and not Slovakia.
twoway (line log_IQVIA_pCap year if Country=="AUT", lpattern(dash) lcolor(green)) ///
(line log_IQVIA_pCap year if Country_Code=="BEL", lpattern(dash) lcolor(khaki)) ///
(line log_IQVIA_pCap year if Country_Code=="CZE", lpattern(dash) lcolor(lavender)) ///
(line log_IQVIA_pCap year if Country_Code=="DNK", lpattern(dash) lcolor(lime)) ///
(line log_IQVIA_pCap year if Country_Code=="EST", lpattern(dash) lcolor(ltbluishgray)) ///
(line log_IQVIA_pCap year if Country_Code=="FIN", lpattern(dash) lcolor(ltkhaki)) ///
(line log_IQVIA_pCap year if Country_Code=="FRA", lpattern(dash) lcolor(magenta)) ///
(line log_IQVIA_pCap year if Country_Code=="DEU", lpattern(dash) lcolor(maroon)) ///
(line log_IQVIA_pCap year if Country_Code=="GRC", lpattern(dash) lcolor(midblue)) ///
(line log_IQVIA_pCap year if Country_Code=="HUN", lpattern(dash) lcolor(midgreen)) ///
(line log_IQVIA_pCap year if Country_Code=="IRL", lpattern(dash) lcolor(mint)) ///
(line log_IQVIA_pCap year if Country_Code=="ITA", lpattern(dash) lcolor(navy)) ///
(line log_IQVIA_pCap year if Country_Code=="LVA", lpattern(dash) lcolor(olive)) ///
(line log_IQVIA_pCap year if Country_Code=="LTU", lpattern(dash) lcolor(olive_teal)) ///
(line log_IQVIA_pCap year if Country_Code=="LUX", lpattern(dash) lcolor(orange)) ///
(line log_IQVIA_pCap year if Country_Code=="NLD", lpattern(dash) lcolor(orange_red)) ///
(line log_IQVIA_pCap year if Country_Code=="POL", lpattern(dash) lcolor(pink)) ///
(line log_IQVIA_pCap year if Country_Code=="PRT", lpattern(dash) lcolor(purple)) ///
(line log_IQVIA_pCap year if Country_Code=="SVK", lpattern(dash) lcolor(sand)) ///
(line log_IQVIA_pCap year if Country_Code=="SVN", lpattern(dash) lcolor(sandb)) ///
(line log_IQVIA_pCap year if Country_Code=="ESP", lpattern(dash) lcolor(sienna)) ///
(line log_IQVIA_pCap year if Country_Code=="SWE", lpattern(dash) lcolor(stone)) ///
(line log_IQVIA_pCap year if Country_Code=="GBR", lpattern(dash) lcolor(teal)) if year > 2009, ///
title("log of per capita IQVIA revenue by Top20 Pharma - EU and Canada") ///
legend(label(1 "Austria")) ///
legend(label(2 "Belgium")) ///
legend(label(3 "Czech")) ///
legend(label(4 "Denmark")) ///
legend(label(5 "CostaRica")) ///
legend(label(6 "Estonia")) ///
legend(label(7 "Finland")) ///
legend(label(8 "France")) ///
legend(label(9 "Germany")) ///
legend(label(10 "Greece")) ///
legend(label(11 "Hungary")) ///
legend(label(12 "Ireland")) ///
legend(label(13 "Italy")) ///
legend(label(14 "Latvia")) ///
legend(label(15 "Lithuania")) ///
legend(label(16 "Luxembourg")) ///
legend(label(17 "Netherlands")) ///
legend(label(18 "Poland")) ///
legend(label(19 "Portugal")) ///
legend(label(20 "Slovakia")) ///
legend(label(21 "Slovenia")) ///
legend(label(22 "Spain")) ///
legend(label(23 "Sweden")) ///
legend(label(24 "United Kingdom"))
Comment