Skip to primary content

monkeymike.co.uk

…stuff…and more stuff

Main menu

  • SlshDt
    • Economist
    • iPlayer
    • Royal Society
    • ScienceMag
    • BMJ
    • PLOS one
  • img
    • London
    • London2013
  • Art/Lolz
    • BoingBoing
    • LOLCATS
      • 27b/6
      • Doug
      • StudioExec
    • ART
      • Wow
      • ArtSupplies
      • DeviantArt
    • OVID
    • FreeSound
      • SoundCloud
  • Sci/Math
    • Science
    • PhysOrg
    • ClimateAudit
    • Archea
    • ArcheaAgain
    • ArcheaOpenAccess
    • BGS
    • USGS
    • Fungus
  • Code
    • scratch
    • lxr
    • WebDev
      • FancyWeb
      • DownForEveryoneOrJustMe
      • BTSpeedTest
      • escapes
    • CompSci
      • Voronoi
    • StckOverflow
    • AndroidForums
    • lang
      • Google Research
      • C++Basic
      • Cplusplus
      • ProgAndroid
      • c++0x
      • C#
    • DrDobbs
    • SecureList
    • CrapCoding
      • CodingHorror
      • Anti-Pattern
    • HashCat
    • O’Reilly
  • explr
    • 28DaysL8R
    • indyMedia
  • Data
    • SomeRndThoughts
    • Open Gov
    • OS-Open
    • GIS
      • Shape – SVG
      • ONS Open
    • JavaDataMining
    • Data Science
  • Crsera
    • StackSkills
    • R
    • Udemy
    • DropBox

Post navigation

← Previous Next →

Voronoi in R (from deldir manual)

Posted on 2014-08-05 by mike

delauney

install.packages("deldir")

install.packages("deldir")
library(deldir)
set.seed(42)
x <- runif(50)
y <- runif(50)
z <- deldir(x,y,rw=c(0,1,0,1))
w <- tile.list(z)
plot(w)
ccc <- heat.colors(20) # Or topo.colors(20), or terrain.colors(20)
# or cm.colors(20), or rainbow(20).
This entry was posted in Generic, R-Code, Visualisation and tagged Computational Geometry, Delaunay, Triangulation, Voronoi by mike. Bookmark the permalink.
Proudly powered by WordPress