Here's the R code that produced the plot
price_and_shipping=read.table("iphoneListingsPricesOnly.txt")
allprices= price_and_shipping
$V1+ price_and_shipping$V2
allprices=sort(allprices)
outlierCount=round(length(allprices)*.05,0)
prices=allprices[(outlierCount+1):(length(allprices)-outlierCount)]
library(beanplot)
png(filename = "priceDistribution.png")
beanplot(prices,method="stack",axes=TRUE,what=c(0,1,0,1),log="",main="Beanplot distribution of prices")
dev.off()
code formatting kludged together from output from Pretty R at inside-R.org -- i had to hack at it to get it to work on blogspot, and that made it uglier than it should be. normally they make (as per the name) pretty stuff.
2 comments:
You should redo this analysis with fun beanplot a few more times as we go through the AT&T-Verizon transition. How much work is it? Cool stuff.
Billy - I knew you'd like it. It's not really automated. Probably 20 min?
Post a Comment