Re: [R] rms plot.Predict question: swapping x- and y- axis for categorical predictors

2012-10-30 Thread Frank Harrell
The new version of rms is now on CRAN (for Mac and Windows probably tomorrow). You can now do p <- Predict(...); plot(p, ~ x2, nlines=TRUE, type='p') to get what you want. Frank stephsus wrote > Hi Frank, > > Thanks for your reply! Using p <- Predict(f, x2); plot(p, ~x2, > nlines=TRUE) > makes

Re: [R] rms plot.Predict question: swapping x- and y- axis for categorical predictors

2012-10-23 Thread Frank Harrell
Stephanie, I just realized this is already implemented. For your problem use p <- Predict(f,x2); plot(p, ~ x2, nlines=TRUE) Frank Frank Harrell wrote > Stephanie, > > I'm working on an option for the plot method for Predict that will allow > you to do this. Note that this approach will not re

Re: [R] rms plot.Predict question: swapping x- and y- axis for categorical predictors

2012-10-21 Thread Frank Harrell
Stephanie, I'm working on an option for the plot method for Predict that will allow you to do this. Note that this approach will not result in very readable predictor category labels when they are long character strings. If you are using linux I can get you a new version of rms with this option

[R] rms plot.Predict question: swapping x- and y- axis for categorical predictors

2012-10-20 Thread stephsus
Hello all, I'm trying to plot the effects of variables estimated by a regression model fit individually, and for categorical predictors, the independent variable shows up on the y-axis, with the dependent variable on the x-axis. Is there a way to prevent this reversal? Sample code with dummy data