updating wikia plotting for ve'
This commit is contained in:
parent
187174d8b9
commit
c086203934
@ -34,9 +34,21 @@ joint_df <- joint_df |>
|
|||||||
grepl("l10n-bot@translatewiki\\.net", author_email, ignore.case = TRUE) ~ "localization",
|
grepl("l10n-bot@translatewiki\\.net", author_email, ignore.case = TRUE) ~ "localization",
|
||||||
grepl("@wikimedia\\.org", author_email, ignore.case = TRUE) ~ "TRUE",
|
grepl("@wikimedia\\.org", author_email, ignore.case = TRUE) ~ "TRUE",
|
||||||
grepl("@wikimedia\\.de", author_email, ignore.case = TRUE) ~ "TRUE",
|
grepl("@wikimedia\\.de", author_email, ignore.case = TRUE) ~ "TRUE",
|
||||||
|
grepl("@wikia-inc\\.com", author_email, ignore.case = TRUE) ~ "Wikia",
|
||||||
grepl("@gerrit\\.wikimedia\\.org", author_email, ignore.case = TRUE) ~ "Gerrit",
|
grepl("@gerrit\\.wikimedia\\.org", author_email, ignore.case = TRUE) ~ "Gerrit",
|
||||||
TRUE ~ "FALSE"
|
TRUE ~ "FALSE"
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
|
#looking up share of commits
|
||||||
|
commit_share <- joint_df |>
|
||||||
|
filter(repo=="core")|>
|
||||||
|
filter(commit_date >= as.Date("2012-11-11") & commit_date <= as.Date("2015-09-30"))|>
|
||||||
|
group_by(isAuthorWMF)|>
|
||||||
|
summarise(count = n())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
library(tidyr)
|
library(tidyr)
|
||||||
authors_in_both <- joint_df |>
|
authors_in_both <- joint_df |>
|
||||||
group_by(author_email, repo) |>
|
group_by(author_email, repo) |>
|
||||||
@ -58,7 +70,9 @@ c1_weekly <- joint_df |>
|
|||||||
counts <- c1_weekly |>
|
counts <- c1_weekly |>
|
||||||
filter(isAuthorWMF != "Gerrit")|>
|
filter(isAuthorWMF != "Gerrit")|>
|
||||||
filter(isAuthorWMF != "localization")|>
|
filter(isAuthorWMF != "localization")|>
|
||||||
filter(source == 'c1')
|
filter(source == 'c1') |>
|
||||||
|
mutate(isAuthorWMF = factor(isAuthorWMF,
|
||||||
|
levels = c("FALSE", "Wikia", "TRUE")))
|
||||||
#counts <- c1_core_weekly |>
|
#counts <- c1_core_weekly |>
|
||||||
# filter(isAuthorWMF == "ActiveEmails") |>
|
# filter(isAuthorWMF == "ActiveEmails") |>
|
||||||
# filter(source == 'c1')
|
# filter(source == 'c1')
|
||||||
@ -90,17 +104,18 @@ commits_created <-
|
|||||||
aes(x=week_index, y=75, label='Opt-out deployment'),
|
aes(x=week_index, y=75, label='Opt-out deployment'),
|
||||||
size = 3) +
|
size = 3) +
|
||||||
geom_text(
|
geom_text(
|
||||||
data = subset(counts, repo == "core" & week_index == -27),
|
data = subset(counts, repo == "core" & week_index == -26),
|
||||||
aes(x=week_index, y=75, label='Opt-in Testing'),
|
aes(x=week_index, y=75, label='Opt-in Testing'),
|
||||||
size = 3) +
|
size = 3) +
|
||||||
geom_text(
|
geom_text(
|
||||||
data = subset(counts, repo == "core" & week_index == -8),
|
data = subset(counts, repo == "core" & week_index == -9),
|
||||||
aes(x=week_index, y=75, label='Deployment Announcement'),
|
aes(x=week_index, y=75, label='Deployment Announcement '),
|
||||||
size = 3) +
|
size = 3) +
|
||||||
theme_minimal() +
|
theme_minimal() +
|
||||||
scale_fill_viridis_d(
|
scale_fill_viridis_d(
|
||||||
breaks = c("FALSE", "TRUE", "BzImport"),
|
breaks = c("FALSE", "TRUE", "Wikia"),
|
||||||
labels = c("External Contributor", "WMF-affiliate", "BzImport")
|
labels = c("External Contributor", "WMF-affiliate", "Wikia"),
|
||||||
|
direction = 1
|
||||||
) +
|
) +
|
||||||
labs(
|
labs(
|
||||||
x = "Weeks from VisualEditor Deployment on Wikipedia",
|
x = "Weeks from VisualEditor Deployment on Wikipedia",
|
||||||
@ -110,7 +125,7 @@ commits_created <-
|
|||||||
theme(legend.position = "top")
|
theme(legend.position = "top")
|
||||||
commits_created
|
commits_created
|
||||||
ggsave(
|
ggsave(
|
||||||
filename = "011925_ve_commits_created.png",
|
filename = "012026_nowikia_ve_commits_created.png",
|
||||||
plot = commits_created,
|
plot = commits_created,
|
||||||
width = 8, # inches
|
width = 8, # inches
|
||||||
height = 4, # inches
|
height = 4, # inches
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 363 KiB |
BIN
final_plots/012026_nowikia_ve_commits_created.png
Normal file
BIN
final_plots/012026_nowikia_ve_commits_created.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 352 KiB |
BIN
final_plots/012026_ve_commits_created.png
Normal file
BIN
final_plots/012026_ve_commits_created.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 373 KiB |
Loading…
Reference in New Issue
Block a user