You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
size=raw$revenue, # points sized according to revenue of that thing in that month => bubble plot
100
100
colour=factor(title))) +
101
101
geom_jitter() +# same as geom_point(position = "jitter"); spreads data points randomly around true x value bit; day-exact resolution not (yet) possible
102
-
labs(title="Development of Flattr Revenue per Click",
103
-
x=NULL, y= expression("EUR per Flattr (extremes omitted)")) +# learned from http://docs.ggplot2.org/current/labs.html
104
-
stat_smooth(mapping= aes(best_thing$period,
105
-
best_thing$EUR_per_click,
102
+
labs(title="Development of Flattr Revenue per Click", # learned from http://docs.ggplot2.org/current/labs.html
103
+
x=NULL,
104
+
y= expression("EUR per Flattr (extremes omitted)"),
105
+
colour="Thing",
106
+
size="Total revenue of Thing") +
107
+
stat_smooth(mapping= aes(x=best_thing$period,
108
+
y=best_thing$EUR_per_click,
106
109
size=best_thing$all_revenue),
107
110
data=best_thing,
108
111
method="auto",
109
112
show_guide=FALSE,
110
-
size=N_months/20,
113
+
size=N_things/N_months,
111
114
se=FALSE, # confidence interval indicator
112
115
linetype="dashed") +# learned from http://sape.inf.usi.ch/quick-reference/ggplot2/linetype
113
116
stat_smooth(aes(group=1), # plots trendline over all values; otherwise: one for each thing; learned from http://stackoverflow.com/a/12810890
0 commit comments