{"id":800,"date":"2020-02-01T07:01:00","date_gmt":"2020-02-01T00:01:00","guid":{"rendered":"http:\/\/www.gis2me.com\/geospatial\/?p=800"},"modified":"2025-04-30T09:35:46","modified_gmt":"2025-04-30T02:35:46","slug":"r-studio-ep05-%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87-point-%e0%b8%88%e0%b8%b2%e0%b8%81-excel-%e0%b9%83%e0%b8%99-leaflet-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%81","status":"publish","type":"post","link":"http:\/\/www.gis2me.com\/geospatial\/?p=800","title":{"rendered":"R-studio : ( EP#05 ) \u0e41\u0e2a\u0e14\u0e07 Point \u0e08\u0e32\u0e01 Excel \u0e43\u0e19 leaflet \u0e14\u0e49\u0e27\u0e22\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 R"},"content":{"rendered":"<p>R-studio : ( EP#05 ) \u0e41\u0e2a\u0e14\u0e07 Point \u0e08\u0e32\u0e01 Excel \u0e43\u0e19 leaflet \u0e14\u0e49\u0e27\u0e22\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 R<br \/>\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49\u0e43\u0e19 <strong data-start=\"14\" data-end=\"73\">EP#05: \u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07 Point \u0e08\u0e32\u0e01 Excel \u0e1a\u0e19 Leaflet \u0e14\u0e49\u0e27\u0e22\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 R<\/strong> \u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e17\u0e40\u0e23\u0e35\u0e22\u0e19\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e43\u0e19\u0e07\u0e32\u0e19\u0e27\u0e34\u0e40\u0e04\u0e23\u0e32\u0e30\u0e2b\u0e4c\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 GIS \u0e14\u0e49\u0e27\u0e22 R \u0e42\u0e14\u0e22\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e1e\u0e34\u0e01\u0e31\u0e14\u0e08\u0e38\u0e14 (Point data) \u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e41\u0e1a\u0e1a\u0e2a\u0e33\u0e23\u0e27\u0e08\u0e20\u0e32\u0e04\u0e2a\u0e19\u0e32\u0e21 \u0e40\u0e0a\u0e48\u0e19 \u0e44\u0e1f\u0e25\u0e4c Excel \u0e17\u0e35\u0e48\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 Latitude \u0e41\u0e25\u0e30 Longitude<\/p>\n<p>R script \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1d\u0e36\u0e01\u0e2b\u0e31\u0e14 <a href=\"https:\/\/bit.ly\/2WugFA6\">https:\/\/bit.ly\/2WugFA6<\/a><\/p>\n<p>Excel \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1d\u0e36\u0e01\u0e2b\u0e31\u0e14 <a href=\"https:\/\/bit.ly\/2T4KmWo\">https:\/\/bit.ly\/2T4KmWo<\/a><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/bl338EyBTgU\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udfaf \u0e27\u0e31\u0e15\u0e16\u0e38\u0e1b\u0e23\u0e30\u0e2a\u0e07\u0e04\u0e4c\u0e02\u0e2d\u0e07\u0e1a\u0e17\u0e40\u0e23\u0e35\u0e22\u0e19<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e44\u0e1f\u0e25\u0e4c Excel \u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48 R<\/li>\n\n\n\n<li>\u0e41\u0e2a\u0e14\u0e07\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e08\u0e38\u0e14\u0e1a\u0e19\u0e41\u0e1c\u0e19\u0e17\u0e35\u0e48 Leaflet \u0e14\u0e49\u0e27\u0e22\u0e1e\u0e34\u0e01\u0e31\u0e14 Latitude \u0e41\u0e25\u0e30 Longitude<\/li>\n\n\n\n<li>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21 popup\/label \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21<\/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\u0e44\u0e1f\u0e25\u0e4c\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e1d\u0e36\u0e01<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83d\udcc4 <strong>R Script \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1d\u0e36\u0e01\u0e2b\u0e31\u0e14<\/strong>: <a class=\"\" href=\"https:\/\/bit.ly\/2WugFA6\">https:\/\/bit.ly\/2WugFA6<\/a><\/li>\n\n\n\n<li>\ud83d\udcca <strong>Excel \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1d\u0e36\u0e01\u0e2b\u0e31\u0e14<\/strong>: <a class=\"\" href=\"https:\/\/bit.ly\/2T4KmWo\">https:\/\/bit.ly\/2T4KmWo<\/a><\/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\udee0 \u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e1b\u0e0f\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e01\u0e32\u0e23<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08\u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">rCopyEdit<code>install.packages(\"readxl\")\ninstall.packages(\"leaflet\")\ninstall.packages(\"dplyr\")\n\nlibrary(readxl)\nlibrary(leaflet)\nlibrary(dplyr)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u0e2d\u0e48\u0e32\u0e19\u0e44\u0e1f\u0e25\u0e4c Excel<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">rCopyEdit<code>point_data &lt;- read_excel(\"\u0e0a\u0e37\u0e48\u0e2d\u0e44\u0e1f\u0e25\u0e4c.xlsx\")  # \u0e2b\u0e23\u0e37\u0e2d path \u0e17\u0e35\u0e48\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e21\u0e32\nhead(point_data)\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32<\/strong> \u0e21\u0e35\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c\u0e0a\u0e37\u0e48\u0e2d <code>latitude<\/code>, <code>longitude<\/code>, <code>name<\/code>, <code>info<\/code> \u0e2b\u0e23\u0e37\u0e2d\u0e2d\u0e37\u0e48\u0e19\u0e46 \u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07 Point \u0e1a\u0e19 Leaflet Map<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">rCopyEdit<code>leaflet(data = point_data) %&gt;%\n  addTiles() %&gt;%\n  addCircleMarkers(\n    lng = ~longitude,\n    lat = ~latitude,\n    radius = 6,\n    color = \"blue\",\n    fillOpacity = 0.7,\n    popup = ~paste(\"\u0e0a\u0e37\u0e48\u0e2d:\", name, \"&lt;br&gt;\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14:\", info)\n  )\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u0e2b\u0e32\u0e01\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e21\u0e32\u0e01 \u0e41\u0e19\u0e30\u0e19\u0e33\u0e40\u0e1e\u0e34\u0e48\u0e21 <code>clusterOptions = markerClusterOptions()<\/code> \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e27\u0e21\u0e01\u0e25\u0e38\u0e48\u0e21\u0e08\u0e38\u0e14<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udca1 \u0e40\u0e17\u0e04\u0e19\u0e34\u0e04\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u0e1f\u0e35\u0e40\u0e08\u0e2d\u0e23\u0e4c<\/th><th>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07<\/th><\/tr><\/thead><tbody><tr><td>\u0e41\u0e2a\u0e14\u0e07 label \u0e41\u0e1a\u0e1a\u0e25\u0e2d\u0e22<\/td><td><code>label = ~name<\/code><\/td><\/tr><tr><td>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e44\u0e2d\u0e04\u0e2d\u0e19\u0e40\u0e09\u0e1e\u0e32\u0e30<\/td><td>\u0e43\u0e0a\u0e49 <code>addMarkers()<\/code> + <code>icons = makeIcon(...)<\/code><\/td><\/tr><tr><td>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e1b\u0e38\u0e48\u0e21 zoom \u0e01\u0e25\u0e31\u0e1a\u0e44\u0e1b\u0e22\u0e31\u0e07 layer<\/td><td><code>addResetMapButton()<\/code> (\u0e1c\u0e48\u0e32\u0e19 <code>leaflet.extras<\/code>)<\/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\udcda \u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e22\u0e38\u0e01\u0e15\u0e4c\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e41\u0e2a\u0e14\u0e07\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e2a\u0e16\u0e32\u0e19\u0e17\u0e35\u0e48\u0e23\u0e32\u0e0a\u0e01\u0e32\u0e23 \u0e40\u0e0a\u0e48\u0e19 \u0e42\u0e23\u0e07\u0e1e\u0e22\u0e32\u0e1a\u0e32\u0e25, \u0e42\u0e23\u0e07\u0e40\u0e23\u0e35\u0e22\u0e19<\/li>\n\n\n\n<li>\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e1b\u0e48\u0e27\u0e22 \u0e2b\u0e23\u0e37\u0e2d\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48\u0e2a\u0e33\u0e23\u0e27\u0e08\u0e20\u0e32\u0e04\u0e2a\u0e19\u0e32\u0e21<\/li>\n\n\n\n<li>\u0e1e\u0e34\u0e01\u0e31\u0e14\u0e1a\u0e49\u0e32\u0e19\u0e40\u0e23\u0e37\u0e2d\u0e19\u0e43\u0e19\u0e42\u0e04\u0e23\u0e07\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e0a\u0e38\u0e21\u0e0a\u0e19<\/li>\n\n\n\n<li>\u0e15\u0e34\u0e14\u0e15\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e01\u0e34\u0e08\u0e01\u0e23\u0e23\u0e21\u0e20\u0e32\u0e04\u0e2a\u0e19\u0e32\u0e21\u0e41\u0e1a\u0e1a Real-Time (\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e01\u0e31\u0e1a Google Form \u2192 Google Sheet)<\/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\udd17 \u0e41\u0e2b\u0e25\u0e48\u0e07\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49\u0e40\u0e2a\u0e23\u0e34\u0e21<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a class=\"\">Cheatsheet: Leaflet for R by RStudio<\/a><\/li>\n\n\n\n<li><a class=\"\">\u0e04\u0e39\u0e48\u0e21\u0e37\u0e2d readxl \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Excel<\/a><\/li>\n\n\n\n<li><a class=\"\" href=\"https:\/\/github.com\/tidyverse\/googlesheets4\">Visualize Google Sheet in R<\/a><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 \u0e2a\u0e23\u0e38\u0e1b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e1a\u0e17\u0e40\u0e23\u0e35\u0e22\u0e19\u0e19\u0e35\u0e49\u0e41\u0e2a\u0e14\u0e07\u0e43\u0e2b\u0e49\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 <strong>R + Leaflet<\/strong> \u0e40\u0e1b\u0e47\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e23\u0e30\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e20\u0e32\u0e1e\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e42\u0e22\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e20\u0e32\u0e04\u0e2a\u0e19\u0e32\u0e21\u0e01\u0e31\u0e1a\u0e41\u0e1c\u0e19\u0e17\u0e35\u0e48 GIS \u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e23\u0e27\u0e14\u0e40\u0e23\u0e47\u0e27\u0e41\u0e25\u0e30\u0e22\u0e37\u0e14\u0e2b\u0e22\u0e38\u0e48\u0e19 \u0e40\u0e2b\u0e21\u0e32\u0e30\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e17\u0e35\u0e48\u0e17\u0e33\u0e07\u0e32\u0e19\u0e14\u0e49\u0e32\u0e19\u0e2a\u0e32\u0e18\u0e32\u0e23\u0e13\u0e2a\u0e38\u0e02, \u0e2a\u0e34\u0e48\u0e07\u0e41\u0e27\u0e14\u0e25\u0e49\u0e2d\u0e21, \u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e2a\u0e33\u0e23\u0e27\u0e08\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48\u0e08\u0e23\u0e34\u0e07 \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e44\u0e1b\u0e15\u0e48\u0e2d\u0e22\u0e2d\u0e14\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Dashboard \u0e40\u0e0a\u0e34\u0e07\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48\u0e14\u0e49\u0e27\u0e22 R Shiny \u0e44\u0e14\u0e49\u0e2d\u0e35\u0e01\u0e14\u0e49\u0e27\u0e22<\/p>\n","protected":false},"excerpt":{"rendered":"<p>R-studio : ( EP#05 ) \u0e41\u0e2a\u0e14\u0e07 Point \u0e08\u0e32\u0e01 Excel \u0e43\u0e19 leaflet \u0e14\u0e49 [&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":[526,440,622,477,623,626,439,478,627,624,621,629,625,620,628],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category--r-studio","tag-excel-to-gis","tag-gis--r","tag-leaflet-popup","tag-leaflet-r","tag-map-from-excel","tag-r-leaflet-map","tag-r-studio","tag-readxl","tag-627","tag-624","tag--latitude-longitude","tag--excel","tag-625","tag-620","tag--r--gis"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/posts\/800","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=800"}],"version-history":[{"count":1,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":801,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions\/801"}],"wp:attachment":[{"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gis2me.com\/geospatial\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}