Hi Antonio,
Have a look at twoord.plot (plotrix). It may make your repeated plots easier.
Jim
On Sun, May 7, 2017 at 7:50 AM, Antonio Silva wrote:
> Hello
>
> I want to make a plot with two "y" axes. The labels at axis 4 should be the
> values from axis 2 multiplied by a scale factor (as 3.5).
Many thanks Bill, that's it!
Best wishes
Antonio
2017-05-06 20:50 GMT-03:00 William Dunlap :
> Does the following do what you want?
>
> > plot(log2(1:40), sin(1:40))
> > yTickPositions <- axTicks(2)
> > axis(side=4, at=yTickPositions, lab=format(yTickPositions*3.5))
>
>
> Bill Dunlap
> TIBCO So
Does the following do what you want?
> plot(log2(1:40), sin(1:40))
> yTickPositions <- axTicks(2)
> axis(side=4, at=yTickPositions, lab=format(yTickPositions*3.5))
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Sat, May 6, 2017 at 2:50 PM, Antonio Silva wrote:
> Hello
>
> I want to make a pl
Hello
I want to make a plot with two "y" axes. The labels at axis 4 should be the
values from axis 2 multiplied by a scale factor (as 3.5).
In the example below I draw axis 4 exactly as axis 2. But I could not find
a way to multiply its values by 3.5 (e.g.).
plot(rnorm(100,30,5))
axis(4) # I'd l
Hi,
X = 0
Y =12
works for me.
If you judge my answer as too vague, please reread your original post
and kindly post the code you used to define the objects you are
mentioning.
Thanks,
JC
2011/9/19 arunkumar :
> Hi
>
> I have a variable str = " X", "Y" and values ("0","12")
>
> i want to set v
Take a look at assign(), but you may want to add some code to make sure
variables with those names don't already exist.
Something like:
str = c("X","Y")
val = c("0","12")
mapply(function(name,value){assign(name,as.double(value),envir=.GlobalEnv)},
str,val)
Hope this helps,
Michael Weylandt
On
Hi
I have a variable str = " X", "Y" and values ("0","12")
i want to set value for X =0 and Y =12 and use inside the program.
how to do this
Please anybody help me.
--
View this message in context:
http://r.789695.n4.nabble.com/Setting-the-Values-tp3823388p3823388.html
Sent from the R help ma
7 matches
Mail list logo