> The newish rms package which is to replace Design says that it works
> with ggplot2. However, I have not figured out a quick way to put in
> the same sorts of plots with ggplot2.
>
> plot(Predict(fit)) -> plots
>
> ggplot(Predict(fit))
> Error: No layers in plot
>
> qplot(Predict(fit))
> Error: attempt to apply non-function
>
> ggplot(Predict(cumdsa400.lm), aes(cumdsa400, cumar400),
> data=cumdsa400.lm) + geom_point()
> Error in ggplot.data.frame(fortify(data), mapping, ...) :
> Mapping should be created with aes or aes_string
Well, I realized that I don't really need to use rms and can just use
the lm in smooth from ggplot2 as it give exactly the same result. It
would be nice though to see what is meant by rms interacting with ggplot
now.
Aric