Skip to content
Prev 170656 / 398506 Next

scatterplot and correlation for weird data format

On Mon, Feb 16, 2009 at 10:21 AM, William Simpson
<william.a.simpson at gmail.com> wrote:
You might find the reshape package, http://had.co.nz/reshape, helpful.
You could do something like:

dfm <- melt(mydataframe, m = c("num", "rating", "rt"))
cast(dfm, ... ~ view, subset = variable == "rating")

Then do a scatterplot of the variables f and p.

Hadley