Skip to content
Prev 263130 / 398502 Next

profile plot in R

Hi thanks for the help.
 
Here is the error message i got. I could not figure out what goes wrong here.
 
======
require(ggplots2)
sampledata=data.frame(c(1.002, 1.76, 0.67, 0.99), c(1.38,1.0,0.5, 0.78), c(1.003,0.57,0.99, 0.58),c(0.76,1.23, 1.45, .78), c(1.43, 1.34, 1.0, 0.9))
rownames(sampledata)=c("cond1", "cond2", "cond3", "cond4")
colnames(sampledata)=c("col1", "col2", "col3", "col4", "col5")
grp=c("grp1", "grp1", "grp2", "grp3")
sampledata=cbind(sampledata, grp)
long.dat=melt(sampledata[,1:5], idvars=as.character(rownames(sampledata)), measure.vars=as.character(colnames(sampledata)[1:5]), variable_name="cols")
 
ggplot(long.dat, aes(x = cols, y = value)) +
+? geom_line(aes(colour = sampledata$grp)) +
+ facet_grid(~ rownames(sampledata))
Error in get("make_aesthetics", env = x, inherits = TRUE)(x, ...) : 
? could not find function "empty"
 
=====
 
 
thanks again,
Vickie S

----------------------------------------