Skip to content
Prev 326006 / 398503 Next

help with plotmeans (gplots)

Your data is probably not arranged correctly. See if this works for
your data:
byrow=TRUE)
num [1:15, 1:100] 12.85 13 -2 8.98 16.67 ...
and the experimental value (val)
val=as.vector(t(dat)))
'data.frame':   1500 obs. of  2 variables:
 $ time: int  1 1 1 1 1 1 1 1 1 1 ...
 $ val : num  12.85 3.18 7.82 9.16 8.02 ...
-------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77840-4352

-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Simone
Gabbriellini
Sent: Wednesday, June 26, 2013 10:20 AM
To: r-help at r-project.org
Subject: [R] help with plotmeans (gplots)

Dear List,

I have replicated an experiment 100 times. Each experiment lasts for
15
iteration. Thus I have collected results into a data.frame with 100
columns
(one column for each experiment) and 15 rows (one row for each
iteration).

I would like to plot mean values at each iteration using plotmeans,
but I
am unable to understand the syntax I should use. I tried:

times<-as.factor(seq(1,15))

plotmeans(data~times)


with no luck... what should I tell to plotmeans in order to evaluate
my
dataset?


Best regards,

Simone