Here is what I have:
v <- Ticker
v2<- ggplot(Ticker, aes(Stock, PB))
v2 + geom_violin(draw_quantiles = c(.10, .20, .30, .40, .50, .60, .70, .80, .90), adjust = .50) +
stat_summary(fun.data = "mean_sdl", fun.args = list(mult=2), geom = "pointrange", color = "green") +
ggtitle("Historical Trading Range by Price-to-Book. 4.5 Yr Period") + stat_summary(fun.y = function(x) x[length(x)], geom = "point", color = "blue", size = 4)
Is this working because of the "length" condition, meaning it returns the last observation regardless of the number of rows?
Thanks again!