Created
November 17, 2010 16:04
-
-
Save johnjosephhorton/703555 to your computer and use it in GitHub Desktop.
Code for plotting distribution of HITs/worker on MTurk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(reldist) | |
data <- read.csv("User_3144_workers.csv") | |
u = dim(data)[1] | |
png("mturk_distro.png") | |
qplot(Number.of.HITs.approved.or.rejected, data = data) + scale_x_log2() + | |
xlab("Number of HITs Approved or Rejected \n (John Horton's Account)") + | |
ylab("Count of MTurk Workers") + | |
opts(title="Distribution of HITs/Worker (log scale) \n from my Amazon Mechanical Turk Account") + geom_text(aes(x=5.4, y=4000, label=c("Unique workers: 9,119"))) + | |
geom_text(aes(x=4, y=3500, label=c("Total HITs: 62,703"))) | |
dev.off() | |
gini(data$Number.of.HITs.approved.or.rejected) | |
max(data$Number.of.HITs.approved.or.rejected) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment