First, trying to show the relationship between the 60 day returns and tickers AAPL & TSLA with boxplots. I was expecting a boxplot for APPL and for TSLA, it is only showing me APPL.
ggplot(dailyPrice[ticker %in% c('AAPL','TSLA') & is.finite(ey)], aes(y=ret60,x=ticker)) +
geom_boxplot()
Second, trying to show the relationship between date and ey for APPL and TSLA. I was expecting the line graph to have two lines on same graph, but it is only showing one.
ggplot(dailyPrice[ticker =='AAPL' & is.finite(ey)],aes(x=date ,y=ey)) +
geom_line(color='blue') +
geom_line(data=dailyPrice[ticker =='TSLA' & is.finite(ey)],aes(x=date ,y =ey),color='red')