The November Chomp App Search Analytics report is out! The official Chomp blog post can be found here. The quick summary is:
search traffic for the terms shopping and discounts spiked more than 1300% and 3000%, respectively on Black Friday and returned to normal on Cyber Monday
I highlight tons of great Holiday Apps and Games to keep you busy through the season
After looking up how to create a legend using ?legend and searching the R forums for the 86586586th time, I’ve decided to write my own post with a few examples and tricks I’ve picked up. I also provide example code for using dates as an x-axis.
I do most of my heavy computation in Python, leaving R for primarily making pretty plots, exploratory data analysis (EDA) when I first get my hands on a data set, and using my favorite R packages/functions that I’ll never implement on my own (ie Random Forests, CART, SVM). Below is an example plot, with two sets of numbers, a legend, and dates on the axis. Hopefully this is more helpful than the R documentation.
# pick a length, and generate two random normals of this length
len = 43
vals = rnorm(len,0,1)
vals2 = rnorm(len,0,.5)
# pick an initial date in form YYYYMMDD, then generate a years worth of weekly dates
date = 20110201
mydates<-as.Date(as.character(date),"%Y%m%d")
for(i in 1:52){ #
mydates = c(mydates,mydates[length(mydates)]+7)
}
# rename something shorter
x=mydates[2:(len+1)]
# set graphical parameters and plot both random normals, use xaxt="n" to eliminate the x-axis
par(mfrow=c(1,1))
plot(vals,type="l",col="blue",xaxt="n",ylab="y axis label",xlab="",main="Plot Title")
lines(vals2,col="red")
# add back an x-axis with dates, las and cex.axis set direction and size of dates
axis(1, at=1:len,x,las=2,cex.axis=.9)
# add a legend, lwd sets line width, you can use x,y coordinates instead of "bottomleft"
legend("bottomleft", c("thing1","thing2"), col = c("blue", "red"), lwd = 1, title="legend title")
I’m still powering through all the recipe posts I wanted to do after Rosh Hashanah, so here’s the latest, the best noodle kugel recipe ever. It’s my grandmother’s, so I know that slightly biases me, but I’ve had at least 10 people tell me it’s better than their grandmothers’. First here’s a pic of all the ingredients:
The full ingredient list is:
1 pkg egg noodles.
cook, drain, put in large pot and add
1/2 cup sugar
1 cup sour cream
1 container cottage cheese
3 eggs beaten
1 sm can crushed pineapple with juice
1 stick melted margarine (butter)
1 apple grated (thick)
1 teaspoon vanilla
1.5 teaspoon cinnamon
Beat eggs then add all other ingredients, cottage cheese last. When fully mixed the ingredients should smell like kugel and have roughly this consistency:
Mix well put in large baking pan sprinkle with crushed cornflake crumbs and dot with butter. Bake 1 hour at 350 and it should look like this:
Last, but certainly not least, here’s a pic of my grandmother (right) and me as its her recipe:
Welcome to my site! I currently work at Chomp on the research team. Check out my blog posts on the left, browse topic pages from the menu, or see my social media pages using the icons above!