Skip to content

Commit 429ccc7

Browse files
Katrin LeinweberKatrin Leinweber
authored andcommitted
optimised flattr_plot labels & size
1 parent c695ddf commit 429ccc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

summarize-flattr-reports.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ flattr_plot <- ggplot(data = per_period_and_thing,
8989
)
9090
) +
9191
geom_point() +
92-
xlab("Zeit") +
9392
ylab("EUR pro Klick") +
9493
labs(color = "Flattr-Things", size = "Spendensumme") + # set legend titles; arguments have to be same as in ggplot() call
9594
stat_smooth(mapping = aes(best_thing$period,
@@ -107,16 +106,17 @@ flattr_plot <- ggplot(data = per_period_and_thing,
107106
color = "black",
108107
show_guide = FALSE
109108
) +
110-
theme(axis.title = element_text(size = 24),
111-
axis.text = element_text(size = 24),
109+
theme(axis.text = element_text(size = 24),
110+
axis.title.x = element_blank(), # remove axis title, because month labels are unambigous already
111+
axis.title.y = element_text(size = 24),
112112
panel.grid.major = element_line(color = "white", size = 2),
113113
complete = FALSE
114114
) # learned from http://docs.ggplot2.org/0.9.3/theme.html
115115
flattr_plot
116116

117117
ggsave(plot = flattr_plot,
118118
filename = "flattr-revenue-clicks.png",
119-
height = dim(per_period_and_thing)[1]/10, # number of things
119+
height = dim(per_period_and_thing)[1]/12, # number of things
120120
width = length(Flattr_filenames) # number of time points
121121
)
122122

0 commit comments

Comments
 (0)