R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [R.app GUI 1.52 (6188) x86_64-apple-darwin9.8.0] [Workspace restored from /Users/martha/.RData] [History restored from /Users/martha/.Rapp.history] > library(ggplot2) Warning message: package ‘ggplot2’ was built under R version 2.15.2 > ?melt No documentation for ‘melt’ in specified packages and libraries: you could try ‘??melt’ > library(plyr) > ?melt No documentation for ‘melt’ in specified packages and libraries: you could try ‘??melt’ > ??melt > library(reshape) Attaching package: ‘reshape’ The following object(s) are masked from ‘package:plyr’: rename, round_any > ?melt starting httpd help server ... done > d = data.frame(a = c(1,2,3,4), b = c(3,4,5,6)) > melt(d) Using as id variables variable value 1 a 1 2 a 2 3 a 3 4 a 4 5 b 3 6 b 4 7 b 5 8 b 6 > d = data.frame(a = c(1,2,3,4), b = c(3,4,5,6), c= c(4,5,2,3)) > melt(d, id.vars = c(a, b)) Error: id variables not found in data: 1, 4, 5, 6, 3, 5, 10000, 0.00543205483190214, c(0.000162367934198842, 0.00116644420906664), 5e-04, 0.00011, two.sided, Exact binomial test, 5 and 10000 > ?melt > melt(d, id.vars = c('a', 'b')) a b variable value 1 1 3 c 4 2 2 4 c 5 3 3 5 c 2 4 4 6 c 3 > melt(d, measure.vars = c('a', 'b')) c variable value 1 4 a 1 2 5 a 2 3 2 a 3 4 3 a 4 5 4 b 3 6 5 b 4 7 2 b 5 8 3 b 6 > ggplot(d) + geom_boxplot() Error: stat_boxplot requires the following missing aesthetics: x, y > m = melt(d, measure.vars = c('a', 'b')) > ggplot(d) + geom_boxplot(aes(x = variable, y = value)) Error in eval(expr, envir, enclos) : object 'variable' not found > ggplot(m) + geom_boxplot(aes(x = variable, y = value)) > ?geom_histogram > source('/Volumes/data/martha/Networks/Scripts/explore.data.R') Error in source("/Volumes/data/martha/Networks/Scripts/explore.data.R") : /Volumes/data/martha/Networks/Scripts/explore.data.R:14:64: unexpected '=' 13: r <- ggplot(df.all) + geom_boxplot(aes(x = variable, fill = variable)) 14: h <- ggplot(tab) + geom_histogram(aes(x = Vtrans) + binwidth = ^ > source('/Volumes/data/martha/Networks/Scripts/explore.data.R') > source('/Volumes/data/martha/Networks/Scripts/explore.data.R') > source('/Volumes/data/martha/Networks/Scripts/explore.data.R') >