【发布时间】:2015-06-06 11:40:32
【问题描述】:
去年我发布了an analysis of user activity to Meta Stack Overflow,包括一系列 ggplot2 图表。然而,Wooble 指出了我的情节的一个致命缺陷,这让我感到非常羞愧:
手绘红色圆圈are of course necessary in any plot on Meta Stack Overflow,但令我沮丧的是,我找不到将它们添加到 ggplot2 图表的方法。我知道如何add a circle,但是这样的人工构造没有个性,并且永远无法通过 Meta。
作为一个可重现的例子,考虑我自己随时间推移的回答活动的图表,使用stackr 包创建:
# devtools::install_github("dgrtwo/stackr")
library(ggplot2)
library(dplyr)
library(lubridate)
library(stackr)
answers <- stack_users(712603, "answers", num_pages = 10, pagesize = 100)
answers_per_month <- answers %>%
mutate(month = round_date(creation_date, "month")) %>%
count(month)
ggplot(answers_per_month, aes(month, n)) + geom_line()
这个情节足够丰富,但它没有灵魂。如何在其中添加手绘的红色圆圈?
【问题讨论】:
-
我也赞成这个问题,但对同一主题给予两次评分对评分系统来说似乎有点不公平:-)