Jump to content

Voronoi diagram: Difference between revisions

→‎{{header|R}}: minor edits
(→‎{{header|Racket}}: adding R solution)
(→‎{{header|R}}: minor edits)
Line 1,585:
 
=={{header|R}}==
One of the R's great powers is its unlimited number of packages, virtually thousands of them. For any applications big or small you can find a package.
In case of Voronoi diagram there are many of packages, e.g.: deldir, alphahull, dismo, ggplot, ggplot2, tripack, CGAL, etc.
Not to mention all linked packages.
Do you need random color? Again, find a few packages more... So, I've decided to use proven algorithms instead. Result - small compact code and <br>
So, I've decided to use proven algorithms instead. Result - small compact code and
beautiful diagramdiagrams with any reasonable amount of sites.
A few custom helper functions simplified code, and they can be used for any other applications.<br>
If you have not a super fast computer, you can watch animation of plotting in "R Graphics" sub-window of the "RGui" window.
{{trans|JavaScript v.#2}}
{{Works with|R|3.3.3 and above}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.