Re: [R] switching only axis off in plot

2010-11-11 Thread David Winsemius
On Nov 12, 2010, at 12:50 AM, sachinthaka.abeyward...@allianz.com.au wrote: Hi R, In the following code my x-axis is formatted in month format. Which Im happy with. The y-axis is what I want to re-format with something else. Did you mean x-axis? My question is, is it possible just to

Re: [R] switching only axis off in plot

2010-11-11 Thread Dennis Murphy
Hi: Do you mean to leave the x-axis as is and redo the y? If so, use graphical parameter yaxt: x <- y <- 1:10 plot(x, y, yaxt = 'n') axis(2, at = ..., lab = ..., ...)# fill in the blanks In case it matters, xaxt = 'n' suppresses the x-axis labels but not the y labels. HTH, Dennis On Thu,