I have been trying to plot the survival function using the autoplot
function in package survMisc
. So far its good, the plot is fine, but the problem is I cannot use scale_color_grey
to use the grey color scale.
The code is :
autoplot(fit.bygroup, plotTable=TRUE, divideTime=1,legendLabs=c("group1", "group2"), lty=c(1,2),geom_line(size=2))+ scale_color_grey()
I guess the problem is this autoplot
is creating a blank object... Is there any way I can change them in to grey scale colors? Or what if I want a black and white background?
p<- autoplot(fit.bygroup, plotTable=TRUE, divideTime=1,legendLabs=c("group1", "group2"), lty=c(1,2),geom_line(size=2))
This p is actually NULL