[R] "too many arguments" error

Sarah Goslee sarah.goslee at gmail.com
Mon Mar 29 20:14:51 CEST 2010


seq (0, 183, 365, 549, 732, 915, 1095)
should be
c(0, 183, 365, 549, 732, 915, 1095)

see ?seq and ?c for why.

Sarah

On Mon, Mar 29, 2010 at 2:11 PM, Euphoria <yeshapatel83 at gmail.com> wrote:
>
> Hi all!
>
> I keep getting the "too many arguments" error when I insert the xaxt="n",
> axis(1, at=seq (0, 183, 365, 549, 732, 915, 1095))  statement in the code
> below for a survival plot.
>
> How can I go around this issue? Is there another way for me to change the
> x-axis?
>
> Also, I would prefer the y-axis to be represented by percentages (10, 20,
> 30..) rather than decimals (.10, .20, .30...).  I can change the labels, but
> again I get the error, is there another way to solve the problem?
>
> Thanks!
>
>
-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list