[R] Changing tick mark labels

Jonathan Baron baron at cattell.psych.upenn.edu
Thu Apr 18 03:32:18 CEST 2002

On 04/18/02 10:51, Mark Harris wrote:
>Can anyone help me out with this problem?
>After performing logistic regressions and testing the significance with
>likelihood ratios, I have plotted the results using "termplot". I am
>wondering, how to get the names of my variables to appear on the x-axis
>rather than ascending numbers?
>I have used:
>termplot(fm, se=T, axes=FALSE, col.se="black")
>axis(1, 1:4, LETTERS[1:4])
>to replace the numbers with letters - but I want to be able to have the
>names of the plotted varibles from say Data$Expt1, so that instead of A,
>B, C - I have Control, Subs1, Subs2 etc
>Can anyone tell me how I can do this?

I don't know termplot, but for other plottting functions, it
works to say


Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list