(ddply mutate):
df <- data.frame(x=rnorm(1000),kind=sample(c("a","b","c"),1000,replace=T),
label=sample(1:5,1000,replace=T),attribute=sample(1:2,1000,replace=T))
dfx <- ddply(df,.(kind,label,attribute),mutate,cum=rank(x)/length(x))
ggplot(dfx,aes(x=x))+geom_line(aes(y=cum,color=kind))+facet_grid(label~attribute)