[R] any quick way to write this label
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) Thank you. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] any quick way to write this label
On Sun, Mar 28, 2010 at 8:56 AM, Roslina Zakaria zrosl...@yahoo.com 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) Not sure what you mean by 'write this label'. But to generate that vector, yes there is a quick way... Hint: Use 'seq' to generate the numeric sequence and then use as.character to make it into character values. Barry __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] any quick way to write this label
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) 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 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] any quick way to write this label
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 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.