On 06/16/2013 04:14 AM, Birdada Simret wrote:
Thank you.
@David: The example is exactly this:
time <- seq(0,72,6)
music <- c(0.05,0.18,0.25,0.31,0.32,0.34,0.35,
0.36,0.37,0.38,0.39,0.40,0.41)
actor <- c(0,1000,2000,3000,4000,5000,6000,7000,8000,9000,1,11000,12000)
par(mar=c(5, 4, 4, 4) + 0.1)
quot;red",xtickpos=month,xticklab=month))
>>
>> legend(5,13000,legend=c("Music","Actor"),text.col=c("black","red"),col=c("black","red"))
>>
>> #I tried to change the plotting symbol using "pch" inside the
he plotting symbol using "pch" inside the
> twoord.plot(), but it seems to be not working.
> with(dat2New,twoord.plot(month,music,actor,
> lylim=c(0,1),rylim=c(0,13000),
> ylab="Music",
> ryl
month))
#Error in localWindow(xlim, ylim, log, asp, ...) :
# formal argument "pch" matched by multiple actual arguments
A.K.
- Original Message -
From: Birdada Simret
To: r-help@r-project.org
Cc:
Sent: Saturday, June 15, 2013 8:18 AM
Subject: [R] Plotting two y-axis
On Jun 15, 2013, at 5:18 AM, Birdada Simret wrote:
> Hi dear all, the following code is correct. but I want to use non-numeric
> x-axis, for example
> if I replace time <- seq(0,72,6) by
> month <-
> c("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Pag")
>
> Ofcourse
Hi dear all, the following code is correct. but I want to use non-numeric
x-axis, for example
if I replace time <- seq(0,72,6) by
month <-
c("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Pag")
Ofcourse I use factor(month) instead of time; but I didn't get similar
plo
6 matches
Mail list logo