Re: [R] Probably dumb question about lists

2015-01-14 Thread Raphael Päbst
eveal the problem. >> >> str(tl[1:800]) >> >> 3. I would **guess** (ergo could well be wrong) that "[" is not >> preserving the class attribute of tl. Ergo you are getting the basic >> plot method and not the plot.tile.list method. >> >> HTH. >

[R] Probably dumb question about lists

2015-01-14 Thread Raphael Päbst
Hello everybody! I feel very stupid right now but suspect it has something to do with tiredness. I am trying to drop the last couple of Elements from a list and this doesn't work as expected. My code looks something like this: del <- deldir(x, y) tl <- tile.list(del) plot(tl) Now, I only want to

Re: [R] Manipulating Plots

2015-01-06 Thread Raphael Päbst
gt; 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 > wrote: > >> Hello, >> I have a somewhat complicated question and hope, so

[R] Manipulating Plots

2015-01-06 Thread Raphael Päbst
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 centra

Re: [R] Delaunay Graph, once again

2014-06-23 Thread Raphael Päbst
3 > 7 54 > 8 61 > 9 63 > 1064 > 1165 > > This looks right. > > I'm not a Matlab user so I can't check what Matlab would give, but I'm > pretty sure the results would be the same in this toy example where > there are

[R] Delaunay Graph, once again

2014-06-20 Thread Raphael Päbst
Hello again, After playing around with my current problem for some time, I have once again returned to Delaunay Graphs and after banging my head against the problem for some time I fear that I can't see the issue clearly anymore and want to ask for some outside comments, to maybe shake my thoughts

Re: [R] .Internal(filledcontour()) - ancient history or just plain wrong?

2014-06-14 Thread Raphael Päbst
works and should (or should not) be used, but I'm always willing to understand more about the code I'm working with. Thanks again! Raphael On 6/14/14, Prof Brian Ripley wrote: > On 14/06/2014 10:04, Raphael Päbst wrote: >> Hello everyone! >> In my ongoing odyssey thr

[R] .Internal(filledcontour()) - ancient history or just plain wrong?

2014-06-14 Thread Raphael Päbst
Hello everyone! In my ongoing odyssey through badly dokumented and sparingly commented R-code, I've come across something that baffles me. The following line of code .Internal(filledcontour(as.double(x), as.double(y), z, as.double(levels), col = col)) not surprisingly results in an error, telling

Re: [R] Question about setdiff()

2014-06-02 Thread Raphael Päbst
." > > Hope this helps, > Pascal > > > On Mon, Jun 2, 2014 at 3:57 PM, Raphael Päbst > wrote: >> Hello everyone, I have a question which is probably rooted in my lack >> of understanding when it comes to math. >> >> I just did the following: >> >&

[R] Question about setdiff()

2014-06-01 Thread Raphael Päbst
Hello everyone, I have a question which is probably rooted in my lack of understanding when it comes to math. I just did the following: v <- c(1:20) w <- c(11:30) setdiff(v, w) and got: 1 2 3 4 5 6 7 8 9 10 Then I did the following: setdiff(w, v) and got, not surprisingly: 21 22 23 24 25 26 27

Re: [R] Voronoi-Diagrams in R

2014-05-23 Thread Raphael Päbst
in your "bm"? (Upon > re-reading your message and noting the problem with "ptNum", I think > this might be the case.) > > Try doing something like: > > newbm <- bm[!duplicated(bm),] > > and then hit "newbm" with both deldir() and d

Re: [R] Voronoi-Diagrams in R

2014-05-22 Thread Raphael Päbst
, ]. Have I totally misunderstood the meaning of 'ptNum' in this case or does my mistake lie somewhere else? Once again please excuse my slightly chaotic description of my problems and my faulty english and thanks for any help you can give! Raphael On 5/21/14, Rolf Turner wrote: > On 2

Re: [R] Voronoi-Diagrams in R

2014-05-21 Thread Raphael Päbst
ers, > > Rolf Turner > (author of "deldir") > > On 21/05/14 09:33, Raphael Päbst wrote: >> Thanks for the answer! >> >> I'll post a sample tomorrow, I have however found the following: >> triang.list() gives me the coordinates of the triangle

Re: [R] Voronoi-Diagrams in R

2014-05-20 Thread Raphael Päbst
the same results for the same data. > > How about you post a small input dataset and list the output that you > need... > > > B. > > > > > On 2014-05-20, at 2:04 PM, Raphael Päbst wrote: > >> Thank you very much, this looks promising. >> >> I have

Re: [R] Voronoi-Diagrams in R

2014-05-20 Thread Raphael Päbst
.packages("deldir") > library(deldir) > ?deldir > set.seed(16180) > x <- runif(20); y <- runif(20); window <- c(0,1,0,1) > tess <- deldir(x, y, rw = window) > plot.deldir(tess, wpoints="real", wlines="tess") > > Cheers, > Boris &

[R] Voronoi-Diagrams in R

2014-05-14 Thread Raphael Päbst
Hello everyone! I have returned to R after a longish break and am currently working on a project where I need Delaunay-Triangulations and Voronoi-Diagrams. If I understood it correctly, the Geometry-Package only offers functions for the Delaunay-Triangulation at the moment. Is this correct and if s