Hi Michael,

This may be an ugly way of doing things but the "title = unique(paste( ..." bit 
in the code below automates the code for pattern, patient, and line.

So now all I'd need is the looping part.

If good ways of automating the code for pattern, patient, and line or of doing 
the looping are apparent, please let me know. 

Thanks,

Paul
 

ggplot(TestData, aes(value, drug)) + geom_line(size = 6) + xlab("") + ylab("") 
+ theme_bw() +
                 opts(title = unique(paste(TestData$pattern, "\n (profile_key = 
", TestData$profile_key, ", line = ", TestData$line, ") \n" ) ) ) +
                     opts(axis.text.x = theme_blank() )

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to