[R] Manipulating Plots
jvadams at usgs.gov
Tue Jan 6 18:53:42 CET 2015
I'm assuming that the tile.list() function you're using is from the deldir
package. I'm not sure what the figure() function does. Using an example
tessellation from the help file for the tile.list() function, I created two
plots: one with the full view and one with the zoomed in view.
x <- runif(20)
y <- runif(20)
z <- deldir(x, y)
w <- tile.list(z)
# full view
# zoomed in view
plot(0, 0, type="n", xlim=c(0.2, 0.6), ylim=c(0.2, 0.6))
plot(w, close=TRUE, add=TRUE)
On Tue, Jan 6, 2015 at 11:43 AM, Raphael Päbst <raphael.paebst at gmail.com>
> The relevant bit of code should be this one:
> #Getting a list of Voronoi-Cells:
> VoronoiCells <- tile.list(DelTriCor)
> # plotting all of them:
> I hope this helps.
> All the best!
> On 1/6/15, Adams, Jean <jvadams at usgs.gov> wrote:
> > It will be easier for folks to help you if you provide example code that
> > produces a plot like the one you are dealing with.
> > Jean
> > On Tue, Jan 6, 2015 at 11:23 AM, Raphael Päbst <raphael.paebst at gmail.com
> > wrote:
> >> Hello,
> >> I have a somewhat complicated question and hope, someone can help me
> >> or that there is a solution at all for my problem.
> >> I am using R to plot the results of a Voronoi-Tesselation. I am
> >> however only interested in a small part of the plot, around the
> >> center. Is there a way to cut out the central part of the plot and
> >> enlarge it in R? I have quite a few of these plots and cutting and
> >> enlarging the image manually with another software is only the last
> >> option, if there is no other way to do it.
> >> I hope this explains my problem clearly enough and there is a solution
> >> for
> >> it.
> >> Many thanks in advance!
> >> Raphael
> >> ______________________________________________
> >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> >> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help