Skip to content
Prev 325445 / 398503 Next

Plotting two y-axis vs non-numeric x-axis

On 06/16/2013 04:14 AM, Birdada Simret wrote:
Hi Birdada,
You can get the month labels using something like this:

twoord.plot(time,music,time,actor,lylim=c(0,1),type=c("l","b"),
  xtickpos=seq(0,70,by=10),xticklab=month.abb[1:8])

Hi arun,
This question may already have been answered, but to change the symbols, 
you have to use "lpch=" and "rpch=". I get the appropriate types of plot 
when using the above, and I tried several combinations of point, line, 
both that all worked okay. If I figure out what happened in your example 
I'll email the answer.

Jim