Hi,

I want to customize the x-axis.

I tried that:
par(bty="n", xaxt="n")
so that the x-axis is supressed.

then I tried to plot two variables and add a customized x-axis:
plot(x, y)
axis(1, at=c(1,2), labels=c("group1", "group2"))

but the axis is not added to the plot.

I don't understand why..
And how then can I customize the axis?
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to