Re: [R] double-axis labels function of each other

2015-04-03 Thread John Kane
Original Message- > From: hill0...@umn.edu > Sent: Thu, 2 Apr 2015 23:59:17 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] double-axis labels function of each other > > Yes, I keep a copy in MS Word. > Would Notepad be OK? > I need sleep now, will work tomorr

Re: [R] double-axis labels function of each other

2015-04-03 Thread Hurr
Yes, I keep a copy in MS Word. Would Notepad be OK? I need sleep now, will work tomorrow. -- View this message in context: http://r.789695.n4.nabble.com/double-axis-labels-function-of-each-other-tp4705457p4705463.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] double-axis labels function of each other

2015-04-02 Thread Jim Lemon
Hi Hurr, The problem is with the quotes in xlab="". In your version the quotes are not ASCII double quotes but some sort of "smart" quotes. Either your email client has substituted them or more likely, you are editing your code in something like MS Word and cutting and pasting the result into R. Tr

Re: [R] double-axis labels function of each other

2015-04-02 Thread Hurr
Thanks, That was good help; I tried this; I hope I didn't copy it wrong: #try 2 axes at bottom x1 <- c(1,2,3,4,5,6,7,8,9) x2 <- c(5,1,9,6,3,7,8,2,4) par(mar=c(7,4,4,2)) plot(x1,x2,type="l",xlab=””) #scatter plot x1 on horiz, x2 on vert axis require(plotrix) fullaxis(1,at=pretty(x1),labels=round(1/

Re: [R] double-axis labels function of each other

2015-04-02 Thread Jim Lemon
Hi Hurr, Try this: par(mar=c(7,4,4,2)) plot(x1,x2,type="l",xlab="") require(plotrix) fullaxis(1,at=pretty(x1),labels=round(1/pretty(x1),2),tick=TRUE, col="red",col.axis="red",lwd=4,pos=-0.2) mtext("x1",side=1,line=4.5) Jim On Fri, Apr 3, 2015 at 11:16 AM, Hurr wrote: > I have been doing other