0

This refers to my previous question.

Line plot of multiple variables in R

But graph always start from value less than 0 while in excel it is ok.

Excel plot:

enter image description here

R plot:

enter image description here

How can i start the axes at (0,0) only in R?

Community
  • 1
  • 1
Manish
  • 3,341
  • 15
  • 52
  • 87
  • 2
    you should have a look to the paramaters of the par function. par(xaxs="i") should do the work, for the y axis it is yaxs="i". – droopy Jul 10 '13 at 08:51
  • 2
    You claim that "in excel it is ok" is dubious. The graph using default settings in R looks much better. – Roland Jul 10 '13 at 09:06
  • I updated my answer to the previous question to address this issue before I saw this question. I can give the same answer again here, but I'm not sure that's best; there is no longer anything distinctive to this question. – gung - Reinstate Monica Jul 10 '13 at 14:33

0 Answers0