I often have to make stacked barplots to compare variables, and because I do all my stats in R, I prefer to do all my graphics in R with ggplot2. I would like to learn how to do two things:
I like the plyr syntax. Any time I have to use one of the *apply() commands I end up kicking the dog and going on a 3 day bender. So for the sake of my dog and my liver, what\'s concise syntax for doi
The cast() function is great at calculating margins for aggregate values: cast(df, IDx1+IDx2~IDy1, margins=c(\'IDx1\',\'IDx2\',\'grand_row\'),c(min, mean, max))
I have a df and I want to do multiple transform on it with plyr: idplot / idtree / species /condition / dbh_cm / h_m /开发者_Go百科 hblc_m
I have data nested in to levels: L1 L2x1 x2 x3 x4 AThis 20 14 12 15 AThat 11 NA 816 ABatNa 22 139 BThis 109 116