Displaying 1 result from an estimated 1 matches for "qry_r3_aff0_cumrate_pooled".
2012 Nov 07
1
change colour of geom_step by scale_colour_manual
...9;t know why I got three black plot. Here I
attach two version of codes. The first one produces a step plot with color
by default. The second one, modified from the first one, is not producing
the grey scale I want. Any help would be highly appreciated.
[version 1- working]
library(ggplot2)
ggplot(qry_r3_AFF0_CumRate_pooled[qry_r3_AFF0_CumRate_pooled$trt_label %in%
c('ace','ctrlAM','met'),]
, aes(x=AFF0, y=cum_rate_AFF0_pooled, group=trt_label))+
geom_step(aes(color=trt_label), direction="hv", size=5.0)+
scale_y_continuous("Rates of initiating first orien...