[R] axis scale issues....

2009-09-29 Thread chipmaney
I have read all the help on axis scales, which seems to be much harder to deal with than it should be, given how common the need to alter axes. Anywayyeah, suppress the axis using yaxt then call and define the new scale using axis(). The problem is, this doesn't change the actual axis,

Re: [R] axis scale issues....

2009-09-29 Thread jim holtman
Not sure exactly what you want, but does using 'ylim' do what you want: plot(1:5, sample(100:200,5), type='b', ylim=c(0,450)) On Tue, Sep 29, 2009 at 12:08 PM, chipmaney chipma...@hotmail.com wrote: I have read all the help on axis scales, which seems to be much harder to deal with than it

Re: [R] axis scale

2009-08-13 Thread Jim Lemon
maram salem wrote: Dear All, I'm trying to plot a histogram (with the relative frequencies as the Y axis), But the scale of the y axis is given by 0e+00, 1e-04, 2e-04, 3e-04,. Now, I have 2 questions 1- Does (1e-04=0.01831563)? 2- If this true,how can i change the given scale to

Re: [R] axis scale

2009-08-13 Thread Andreas Christoffersen
2- If this true,how can i change the given scale to (0.01,0.03,0.05,0.07,0.09)? If you want to change the axis tickmarks you can buildt your plot with yaxt=n and then add an axis with what you want, e.g. axis(side=2,at=c(0.01,0.03,0.05,0.07,0.09),cex.axis=1,las=2) Hope this helps. If not

[R] axis scale

2009-08-12 Thread maram salem
Dear All, I'm trying to plot a histogram (with the relative frequencies as the Y axis), But the scale of the y axis is given by 0e+00, 1e-04, 2e-04, 3e-04,. Now, I have 2 questions 1- Does (1e-04=0.01831563)? 2- If this true,how can i change the given scale to (0.01,0.03,0.05,0.07,0.09)?

Re: [R] axis scale

2009-08-12 Thread Don MacQueen
Without a short reproducible example your question is difficult to understand, and difficult to give a useful answer. See comments below. -Don At 7:13 AM -0700 8/12/09, maram salem wrote: Dear All, I'm trying to plot a histogram (with the relative frequencies as the Y axis), But the scale of