search for: dietresults

Displaying 1 result from an estimated 1 matches for "dietresults".

2009 Jul 06
2
ReShape chicks example - line plots
...les from the ReShape package there is a simple example of using melt followed by cast that produces a smallish amount of output about the chicks database. Here's the code: library(reshape) names(ChickWeight) <- tolower(names(ChickWeight)) chick_m <- melt(ChickWeight, id=2:4, na.rm=TRUE) DietResults <- cast(chick_m, diet + chick ~ time) DietResults My challenge is to extract an plot only a portion of this data. I would like to plot the data for each chick that participated in diet 1 only. Assume that the numbered column names (0,2,4, ...) represent time on the diet and will be the X...