search for: stop_drug

Displaying 2 results from an estimated 2 matches for "stop_drug".

2012 Mar 30
3
Adding text for written comments to bottom of graphs
...(A, B), Begin (C), End (C), Begin (D), End (D)", " Begin (A, B, C), End (A, B), End (C)", "Begin (A, B, C), End (A, B, C), Begin (C), Begin (D), End (C, D)" ), class = "factor"), start_drug = c(0, 0.7143, 0, 0, 0, 0, 0, 14.5714, 25.4286, 0, 0, 0, 0, 0, 20, 18), stop_drug = c(21, 18, 20, 20, 36, 7.429, 7.429, 21.857, 231.286, 35.286, 35.286, 17, 17, 17, 32.8571, 32.8571)), .Names = c("profile_key", "line", "instance", "drug", "pattern", "start_drug", "stop_drug"), row.names = c(NA, -16L), clas...
2012 Mar 22
4
Plotting patient drug timelines using ggplot2 (or some other means) -- Help!!!
...A, B), Begin (C), End (C), Begin (D), End (D)/ 25.4286/231.286 2/2/Drug A/ Begin (A, B), End (A, B)/0.0000/35.286 2/2/Drug B/ Begin (A, B), End (A, B)/0.0000/35.286 ") TestData <- data.frame(scan(connection, list(profile_key=0, line=0, drug="", pattern="", start_drug=0, stop_drug=0), sep="/")) TestData <- TestData[TestData$profile_key == 2 & TestData$line == 1,] TestData require(reshape) TestData <- melt(TestData, measure.vars = c("start_drug", "stop_drug")) TestData ggplot(TestData, aes(value, drug)) + geom_line(size = 6) + xlab(&q...