[R] ggplot2 melt function "value"
hadley wickham
h.wickham at gmail.com
Thu Nov 29 14:49:31 CET 2007
> > Hi:I recently started using the melt function and
> > found that it is very useful and powerful,however I
> > can't seem to find the way to change the default
> > column header "value" to my custom column name.
>
> melted data are data frames. You can names[..]<-"myvalue" for renaming, but make
> sure you don't need the column for reshaping afterwards.
In the next version of reshape, cast will default (with a message) to
using the last column of the data.frame if value and (all) columns are
not available. This was a nice suggestion from Antony Unwin.
Hadley
--
http://had.co.nz/
More information about the R-help
mailing list