I have some panel data that includes 15 similar companies with 7 different variables that are used to explain the companies' profitability. The data is yearly from 2006-2018. I am currently looking at one variable in particular and I have plotted it. What I need to do is highlight 3 specific companies' lines, and I was thinking the best way to do this would be to just increase the thickness of the lines, but after several attempts I have not been able to increase the three companies. My code:
ggplot(data = FE, mapping = aes(x=Year,y=X2, group=Bank, color=Bank))
+geom_line(aes(size = Company)) +scale_x_discrete(breaks = c(2006,2008,2010,2012,2014,2016,2018))
+theme(axis.text.x =element_text(angle = 90,hjust = 1))
+theme(legend.title = element_blank())+theme(legend.position="none")
I could just use Facets, but I want all lines on one graph.
Thanks