Re: [R] Y-axis labels as decimal numbers

2013-09-10 Thread mohan . radhakrishnan
uration,as.numeric(levels(set1$duration.1)[set1$duration.1]), as.numeric(levels(set1$duration.1)[set1$duration.1]), 2, cex=1.45) Thanks, Mohan From: jim holtman To: mohan.radhakrish...@polarisft.com Cc: R mailing list Date: 09/06/2013 08:20 PM Subject:Re: [R] Y-axis lab

Re: [R] Y-axis labels as decimal numbers

2013-09-06 Thread jim holtman
1$duration.2, labels = set1$duration, las = 2,cex.axis=2.5) > text(set1$duration,set1$duration.1, set1$duration.1, 2, cex=1.45) > > I think this is the correct code. The graphs is attached. y-axis is not > accurately shown. > > > > > Thanks. > > > > From

Re: [R] Y-axis labels as decimal numbers

2013-09-06 Thread mohan . radhakrishnan
ed 'syntax' to use 'factors'. Works perfectly but I still don't know what factors are. Have been using them everywhere without understanding :-) Thanks, Mohan From: jim holtman To: mohan.radhakrish...@polarisft.com Date: 09/05/2013 10:05 PM Subject:Re:

Re: [R] Y-axis labels as decimal numbers

2013-09-05 Thread mohan . radhakrishnan
com Cc: R mailing list Date: 09/05/2013 10:01 PM Subject:Re: [R] Y-axis labels as decimal numbers So what is wrong with the y-axis? When I run your script, things seem right. Can you explain what it is that you want. Jim Holtman Data Munger Guru What is the problem that you are trying t

Re: [R] Y-axis labels as decimal numbers

2013-09-05 Thread Jim Lemon
On 09/05/2013 11:22 PM, mohan.radhakrish...@polarisft.com wrote: Hi, I am able to create a graph with this code but the decimal numbers are not plotted accurately because the ylim values are not set properly. x-axis is proper. How do I accurately set the ylim for duration.1 column

Re: [R] Y-axis labels as decimal numbers

2013-09-05 Thread jim holtman
So what is wrong with the y-axis? When I run your script, things seem right. Can you explain what it is that you want. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Thu, Sep 5, 2013 at 9:22 AM, wrote:

[R] Y-axis labels as decimal numbers

2013-09-05 Thread mohan . radhakrishnan
Hi, I am able to create a graph with this code but the decimal numbers are not plotted accurately because the ylim values are not set properly. x-axis is proper. How do I accurately set the ylim for duration.1 column ? Thanks, Mohan set1$duration<- as.POSIXct(paste('2013-08-24', s

Re: [R] Y Axis Labels

2010-10-27 Thread Downey, Patrick
Thank you both. Using axis I have gotten exactly what I needed. Thanks, Mitch -Original Message- From: Thomas Levine [mailto:thomas.lev...@gmail.com] Sent: Wednesday, October 27, 2010 2:34 PM To: Sarah Goslee Cc: Downey, Patrick; r-help@r-project.org Subject: Re: [R] Y Axis Labels

Re: [R] Y Axis Labels

2010-10-27 Thread Thomas Levine
Oops. That was backwards plot(scale~time,axes=F) axis(2,at=0:4,labels=c("Never", "Once per month", "A few times per month", "A few times per week","Everyday")) axis(1) Tom 2010/10/27 Thomas Levine : > More specifically > > time=rnorm(20)+10 > scale=rep(0:4,4) > plot(time~scale,axes=F) > axis(1,a

[R] Y Axis Labels

2010-10-27 Thread Downey, Patrick
Hello, I have am plotting a 0-4 ordinal scale (y-axis) against time (x-axis). Is there a way to label the values on the y-axis with the translation from the scale? That is, instead of having 0,1,2,3,4 on the y-axis, I would like "Never", "Once per month", "A few times per month", "A few times per