[R] New user help with plot.default

2007-08-02 Thread PaulGaskell
Hi - I'm just starting out with R and have come up against a problem with what should be a simple operation. I'm plotting a range of safety standards for 7 different chemicals. I don't want the standard box and whisker plot - I just a dot for each value. Whilst using plot.default I get the error

Re: [R] New user help with plot.default

2007-08-02 Thread PaulGaskell
I've replied to your email but essentially I just have a problem with the last line below, the at and labels arguments are different lengths. Also the top edge of the ylabel letters are cut off by the left hand side of the plot frame. John Kane-2 wrote: # Draw the specific axes. axis(1,

Re: [R] New user help with plot.default

2007-08-02 Thread John Kane
Hi Paul, I think one of the problems is that xlim is expecting a numerical vector something like c(1:8) implying a contiuous variable and yours is categorical. I have made quite few changes but does this do what you want? It may not be the most effient but it runs :)

Re: [R] New user help with plot.default

2007-08-02 Thread John Kane
If I understand the problem then I think that this was a mistake on my part. I had it working and then made a stupid change. Try axis(2, at=0:3, labels=c(0,1,2,3)) # and to make it look pretty box()

Re: [R] New user help with plot.default

2007-08-02 Thread PaulGaskell
N.B. Margin settings of mar=c(5, 5, 4, 2) + 0.1 were perfect for version 2.5.0 John Kane-2 wrote: If I understand the problem then I think that this was a mistake on my part. I had it working and then made a stupid change. Try axis(2,