The zoomplot function in the TeachingDemos package can be used for this (it
actually redoes the entire plot, but with new limits). This will generally
work for a quick exploration, but for quality plots it is suggested to create
the 1st plot with the correct range to begin with.
--
Gregory
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
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 original
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.
4 matches
Mail list logo