Best I could come up with is to bin the thickness data outside ggplot2 first:
test$thick2 = with(test,ifelse(thicknessOfLine<20000,1,ifelse(thicknessOfLine<40000,2,3)))
ggplot(data=test, aes(x_axis)) +
geom_line(aes(y = variable,size= thick2 ),colour="seagreen4") +
scale_size(breaks = c(1,2,3),labels = c('0-20000','20000-40000','40000+'))
--
Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University
Looking to arrange a meeting? Check my public calendar:
http://tr.im/mikes_public_calendar
~ Certainty is folly... I think. ~