I looked a little good, but I was at a dead end. I can't seem to find a way to build a line that is not related to a scatterplot. Here are some of my details and code to clarify the problem. I have data from the following form
> head(allData) AnnounceDate MarketProbability DealStatus binary BrierScore 1 2000-04-10 0.3333333 Complete 1 0.2340565 2 2000-06-14 0.2142857 Complete 1 0.3618200 3 2000-06-26 0.6846154 Complete 1 0.3690167 4 2000-06-16 0.1875000 Complete 1 0.4364041 5 2000-10-05 0.9555556 Complete 1 0.3078432 6 2000-10-19 0.8500000 Complete 1 0.2670799
I would like to plot MarketProbabilities scatter versus AnnounceDate and determine if the transaction completed successfully using color, i.e.
ggplot(data = allData, aes(x=AnnounceDate, y=MarketProbability, colour=DealStatus)) + geom_point() + scale_colour_hue(h = c(180,0))

but I would also like to impose a sparkling Brier score, I tried
ggplot(data = allData, aes(x=AnnounceDate, y=MarketProbability, colour=DealStatus)) + geom_point() + scale_colour_hue(h = c(180,0)) + geom_line(aes(x=AnnounceDate, y=BrierScore))

I'm confused, why does he draw two lines and add color? How can I associate a string with the previous constructed information?
mgilbert
source share