Re: [R] Change the limits of a plot "a posteriori"

2011-12-06 Thread Greg Snow
t; To: r-help@r-project.org > Subject: [R] Change the limits of a plot "a posteriori" > > Hi all > > How can I change the limits (xlim or ylim) in a plot that has been > already > created? > > For example, consider this naive example > curve(dbeta(x,2,4)) > cu

Re: [R] Change the limits of a plot "a posteriori"

2011-12-01 Thread Duncan Murdoch
On 01/12/2011 1:12 PM, jcano wrote: Hi all How can I change the limits (xlim or ylim) in a plot that has been already created? You can't, if you're using classic R graphics. They use an "ink on paper" model of graphics. If you want to change what you've drawn, you get a new piece of paper.

Re: [R] Change the limits of a plot "a posteriori"

2011-12-01 Thread Jean V Adams
jcano wrote on 12/01/2011 12:12:03 PM: > Hi all > > How can I change the limits (xlim or ylim) in a plot that has been already > created? > > For example, consider this naive example > curve(dbeta(x,2,4)) > curve(dbeta(x,8,13),add=T,col=2) > > When adding the second curve, it goes off the ori

[R] Change the limits of a plot "a posteriori"

2011-12-01 Thread jcano
Hi all How can I change the limits (xlim or ylim) in a plot that has been already created? For example, consider this naive example curve(dbeta(x,2,4)) curve(dbeta(x,8,13),add=T,col=2) When adding the second curve, it goes off the original limits computed by R for the first graph, which are rou