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]]
On Sun, Mar 28, 2010 at 8:56 AM, Roslina Zakaria <zroslina at 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
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