[R] any quick way to write this label

Rainer Hurling rhurlin at gwdg.de
Sun Mar 28 14:09:42 CEST 2010


On 28.03.2010 13:33 (UTC+1), Jim Lemon wrote:
> On 03/28/2010 07:56 PM, Roslina Zakaria wrote:
>> Hi r-users,
>>
>> Is there any quick way to write this label?
>>
>> c("0","50","100","150","200","250","300","350","400","450",
>> "500","550","600","650","700","750","800","850","900")

If it is not for graphics, perhaps this helps?

as.character(seq(0,900,50))

Rainer

> Hi Rosalina,
> I'm going to take a leap in the dark and guess that you want to use
> these as axis labels and want them all to appear. Have a look at the
> staxlab function in the plotrix package.
>
> Jim



More information about the R-help mailing list