search for: rehape2

Displaying 2 results from an estimated 2 matches for "rehape2".

Did you mean: reshape2
2011 Feb 26
1
Transform a dataset from long to wide using reshape2
...pipermail/r-help/2010-November/258265.html I cannot seem to transform a dataset from long to wide using reshape2. Clearly I am missing something very simple but a look at the manual and the reshape paper in JSS does not suggest anything. Any advice would be welcome ===========================load rehape2==================== library(reshape2) ========================Working example=========================== # Example from above URL dat <- read.table(textConnection('Subject Item Score "Subject 1" "Item 1" 1 "Subject 1" "Item 2" 0 "Subject...
2011 Oct 18
3
Ordering of stack in ggplot (package ggplot2)
I'm trying to reproduce the 3rd graph on the page of this site: http://learnr.wordpress.com/2009/03/17/ggplot2-barplots/ . However, the data below produces a ggplot with the stacks sorted in alphabetical order from the bottom up. I'd like the stacks to be in the order "Europe", "Asia", "Americas, "Africa", "Oceania". Is there an easy way to