{"id":822,"date":"2020-06-18T07:17:00","date_gmt":"2020-06-18T00:17:00","guid":{"rendered":"http:\/\/www.gis2me.com\/geospatial\/?p=822"},"modified":"2025-04-30T09:23:51","modified_gmt":"2025-04-30T02:23:51","slug":"r-studio-ep13-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-dem-%e0%b8%95%e0%b8%ad%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88-2-3-%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%81%e0%b8%9a%e0%b8%9a-voronoi","status":"publish","type":"post","link":"http:\/\/www.gis2me.com\/geospatial\/?p=822","title":{"rendered":"R-studio : ( EP#13 ) \u0e2a\u0e23\u0e49\u0e32\u0e07 DEM (\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 2\/3) \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Voronoi \u0e41\u0e25\u0e30 Hexagonal \u0e14\u0e49\u0e27\u0e22\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 R"},"content":{"rendered":"<p>R-studio : ( EP#13 ) \u0e2a\u0e23\u0e49\u0e32\u0e07 DEM (\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 2\/3) \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Voronoi \u0e41\u0e25\u0e30 Hexagonal \u0e14\u0e49\u0e27\u0e22\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 R \u0e19\u0e33\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e38\u0e14 Excel \u0e08\u0e32\u0e01\u0e15\u0e2d\u0e19 EP#12 \u0e21\u0e32\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25\u0e15\u0e48\u0e2d\u0e43\u0e19\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e33\u0e21\u0e32\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e40\u0e1b\u0e47\u0e19 Digital Elevation Model \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Voronoi \u0e41\u0e25\u0e30 Hexagonal \u0e14\u0e49\u0e27\u0e22\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 R<br \/>\u0e43\u0e19\u0e15\u0e2d\u0e19 <strong data-start=\"6\" data-end=\"15\">EP#13<\/strong> \u0e19\u0e35\u0e49 \u0e40\u0e23\u0e32\u0e08\u0e30\u0e15\u0e48\u0e2d\u0e22\u0e2d\u0e14\u0e08\u0e32\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1e\u0e34\u0e01\u0e31\u0e14\u0e08\u0e38\u0e14\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e39\u0e07\u0e17\u0e35\u0e48\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e44\u0e27\u0e49\u0e43\u0e19 <strong data-start=\"70\" data-end=\"79\">EP#12<\/strong> \u0e42\u0e14\u0e22\u0e19\u0e33\u0e21\u0e32\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e41\u0e1a\u0e1a\u0e08\u0e33\u0e25\u0e2d\u0e07 <strong data-start=\"101\" data-end=\"134\">Digital Elevation Model (DEM)<\/strong> \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07 <strong data-start=\"147\" data-end=\"167\">Voronoi Polygons<\/strong> \u0e41\u0e25\u0e30 <strong data-start=\"172\" data-end=\"190\">Hexagonal Grid<\/strong> \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e2b\u0e21\u0e32\u0e30\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e07\u0e32\u0e19\u0e27\u0e34\u0e40\u0e04\u0e23\u0e32\u0e30\u0e2b\u0e4c\u0e40\u0e0a\u0e34\u0e07\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e42\u0e0b\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e33\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1e\u0e37\u0e49\u0e19\u0e1c\u0e34\u0e27\u0e20\u0e39\u0e21\u0e34\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e43\u0e2b\u0e49\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e41\u0e1a\u0e1a\u0e40\u0e0a\u0e34\u0e07\u0e40\u0e0b\u0e25\u0e25\u0e4c (cell-based surface model)<\/p>\n<p>\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e38\u0e14\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e39\u0e07 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e33\u0e21\u0e32\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e40\u0e1b\u0e47\u0e19 Digital Elevation Model \u0e14\u0e49\u0e27\u0e22\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 R<\/p>\n<p>\u00a0<\/p>\n<p>\u0e41\u0e2b\u0e25\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 R markdown script \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a DEM # 2\/3 <a href=\"https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSe4bsYI8OPKIt02cDusACXVHXyEvoMV4xO7aFUoAi1bNi-oIw\/viewform\">https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSe4bsYI8OPKIt02cDusACXVHXyEvoMV4xO7aFUoAi1bNi-oIw\/viewform<\/a><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/4MQTXQpXOrI\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udded \u0e40\u0e1b\u0e49\u0e32\u0e2b\u0e21\u0e32\u0e22\u0e02\u0e2d\u0e07\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 2\/3: \u0e2a\u0e23\u0e49\u0e32\u0e07 DEM \u0e14\u0e49\u0e27\u0e22 Voronoi \u0e41\u0e25\u0e30 Hexagonal<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e39\u0e07\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a <strong>Voronoi Diagram<\/strong><\/li>\n\n\n\n<li>\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e39\u0e07\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a <strong>Hexbin Mapping<\/strong><\/li>\n\n\n\n<li>\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e42\u0e22\u0e07\u0e04\u0e48\u0e32\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e39\u0e07 (elevation) \u0e01\u0e31\u0e1a cell polygon<\/li>\n\n\n\n<li>\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e39\u0e48\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 Interpolation \u0e41\u0e1a\u0e1a\u0e15\u0e48\u0e2d\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e43\u0e19 EP#14<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udce5 \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e2a\u0e04\u0e23\u0e34\u0e1b\u0e15\u0e4c R markdown<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udd17 <a class=\"\" href=\"https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSe4bsYI8OPKIt02cDusACXVHXyEvoMV4xO7aFUoAi1bNi-oIw\/viewform\">EP#13 DEM \u2013 Voronoi &amp; Hexagonal Script<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 \u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">rCopyEdit<code>install.packages(c(\"deldir\", \"sp\", \"sf\", \"ggplot2\", \"hexbin\", \"ggvoronoi\"))\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e42\u0e04\u0e49\u0e14\u0e2a\u0e23\u0e49\u0e32\u0e07 <strong>Voronoi Polygon<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">rCopyEdit<code>library(ggvoronoi)\nlibrary(readxl)\nlibrary(ggplot2)\n\n# \u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\nelevation_data &lt;- read_excel(\"elevation_points.xlsx\")\n\n# \u0e2a\u0e23\u0e49\u0e32\u0e07 Voronoi Diagram\nggplot(elevation_data, aes(x = longitude, y = latitude, fill = elevation)) +\n  geom_voronoi(color = \"white\", size = 0.25, outline = NULL) +\n  scale_fill_viridis_c() +\n  theme_minimal() +\n  labs(title = \"Voronoi Elevation Map\", fill = \"Elevation (m)\")\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e42\u0e04\u0e49\u0e14\u0e2a\u0e23\u0e49\u0e32\u0e07 <strong>Hexagonal Elevation Map<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">rCopyEdit<code>library(hexbin)\nlibrary(ggplot2)\n\n# \u0e2a\u0e23\u0e49\u0e32\u0e07 Hexbin\nggplot(elevation_data, aes(x = longitude, y = latitude, z = elevation)) +\n  stat_summary_hex(bins = 20, fun = mean, aes(fill = after_stat(z))) +\n  scale_fill_viridis_c() +\n  theme_minimal() +\n  labs(title = \"Hexagonal Elevation Grid\", fill = \"Elevation (m)\")\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udfaf \u0e40\u0e2b\u0e21\u0e32\u0e30\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a<\/th><th>\u0e08\u0e38\u0e14\u0e40\u0e14\u0e48\u0e19<\/th><th>\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e22\u0e38\u0e01\u0e15\u0e4c<\/th><\/tr><\/thead><tbody><tr><td><strong>Voronoi<\/strong><\/td><td>\u0e0a\u0e31\u0e14\u0e40\u0e08\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e41\u0e1a\u0e48\u0e07\u0e40\u0e02\u0e15\u0e2d\u0e34\u0e17\u0e18\u0e34\u0e1e\u0e25<\/td><td>\u0e27\u0e34\u0e40\u0e04\u0e23\u0e32\u0e30\u0e2b\u0e4c catchment area \u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e16\u0e32\u0e19\u0e35\u0e27\u0e31\u0e14<\/td><\/tr><tr><td><strong>Hexbin<\/strong><\/td><td>\u0e04\u0e33\u0e19\u0e27\u0e13\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e19\u0e32\u0e41\u0e19\u0e48\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e04\u0e48\u0e32\u0e15\u0e48\u0e2d\u0e40\u0e0b\u0e25\u0e25\u0e4c\u0e44\u0e14\u0e49\u0e14\u0e35<\/td><td>\u0e2a\u0e23\u0e49\u0e32\u0e07 Grid \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Hydrology, Ecology<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd1c \u0e43\u0e19\u0e15\u0e2d\u0e19\u0e16\u0e31\u0e14\u0e44\u0e1b EP#14<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e04\u0e48\u0e32\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e39\u0e07\u0e08\u0e38\u0e14 (Z) \u0e40\u0e1e\u0e37\u0e48\u0e2d Interpolation \u0e41\u0e1a\u0e1a\u0e15\u0e48\u0e2d\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07<\/li>\n\n\n\n<li>\u0e2a\u0e23\u0e49\u0e32\u0e07 DEM \u0e14\u0e49\u0e27\u0e22\u0e40\u0e17\u0e04\u0e19\u0e34\u0e04 IDW, Kriging<\/li>\n\n\n\n<li>\u0e27\u0e34\u0e40\u0e04\u0e23\u0e32\u0e30\u0e2b\u0e4c slope \/ aspect \u0e08\u0e32\u0e01 DEM<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>R-studio : ( EP#13 ) \u0e2a\u0e23\u0e49\u0e32\u0e07 DEM (\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 2\/3) \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Voro [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[21],"tags":[519,522,518,511,451,440,520,517,439,525,516,524,523,521,515],"class_list":["post-822","post","type-post","status-publish","format-standard","hentry","category--r-studio","tag-cell-based-modeling","tag-dem-polygon","tag-dem-r","tag-elevation-data","tag-ggplot2-map","tag-gis--r","tag-hexagonal-grid","tag-hexbin-r","tag-r-studio","tag-r-","tag-spatial-visualization","tag-surface-mapping","tag-terrain-visualization","tag-voronoi-diagram-r","tag-voronoi-map"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/posts\/822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=822"}],"version-history":[{"count":1,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/posts\/822\/revisions"}],"predecessor-version":[{"id":823,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/posts\/822\/revisions\/823"}],"wp:attachment":[{"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=822"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}