On 06/01/2010 12:44 AM, Jie TANG wrote:
here ,I want to plot two lines in one figure.But I have two problems
1) how to move one of the y-axis to be the right ? I tried to the
command"axis(2)",But I failed.
2) how to add the axis information correctly.Since I have use the cmommand
"axis(1,at=1:6,l
It may not be the nicest solution, but my suggestion should work.
Have you tried plot(type="n",...), plotting the axes with axis(), and
plotting the data with lines()?
Ivan
Le 6/1/2010 10:10, Jie TANG a écrit :
> thanks for your reply.
> I have tried to use rseek.org.But still some problems.
>
thanks for your reply.
I have tried to use rseek.org.But still some problems.
When I add "axis(4)" and axis(1,at=1:6,labels=gradeinfo$gradenam),the old
tick or labels still
are there as shown in the figure,how could I delete them( the old tick
information in x-axis and left y axis )
My script is s
I would wote this question one of the most often asked questions here on
that list ;-). Try searching the help archiwe (www.rseek.org) and you
will find solutions. I would guess that you need to use something like:
axis(4)
as the sides of the plot are always numbered from bottom,left,top,right
Hi,
Not sure it is the best solution, but I would create the layout of the
plot part by part:
plot(type="n") #does not plot
axis(1, at=1:6,...) #set the x-axis at the bottom
axis(4,...) #set the y-axis on the right. I'm not sure that's what you
were looking for, didn't really understand it
lines
5 matches
Mail list logo