{"id":278353,"date":"2016-04-15T12:30:02","date_gmt":"2016-04-15T08:30:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=278353"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=278353","title":{"rendered":"R: \u0433\u0435\u043e\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438"},"content":{"rendered":"<p>       \u0412\u0432\u043e\u0434\/\u0432\u044b\u0432\u043e\u0434, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0433\u0435\u043e\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u0437\u0430\u0434\u0430\u0447\u0438, \u043e\u0431\u0449\u0438\u0435 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u043e\u0433\u0438\u0435 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u041d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0435\u0442. \u041c\u044b \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u043d\u0430 <b>cran<\/b> \u0438\u043b\u0438 <b>github<\/b>.<\/p>\n<p>  \u041c\u044b \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0432 R \u0433\u0435\u043e\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u2014 \u0441\u043a\u043e\u0440\u0435\u0435, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u043b\u0435\u0433\u043a\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u0432\u0430\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>geojsonio<\/h4>\n<p>  <a href=\"https:\/\/cran.rstudio.com\/web\/packages\/geojsonio\/\">cran<\/a> <a href=\"https:\/\/github.com\/ropensci\/geojsonio\">github<\/a><\/p>\n<p>  <a href=\"https:\/\/github.com\/ropensci\/geojsonio\">geojsonio<\/a> \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 geojson. \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\/\u0438\u0437 GeoJSON \u0438\u0437 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 R: \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 (data frame), \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"python\">library(&quot;geojsonio&quot;) geojson_json(c(-99.74, 32.45), pretty = TRUE) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"diff\">#&gt; { #&gt;   &quot;type&quot;: &quot;FeatureCollection&quot;, #&gt;   &quot;features&quot;: [ #&gt;     { #&gt;       &quot;type&quot;: &quot;Feature&quot;, #&gt;       &quot;geometry&quot;: { #&gt;         &quot;type&quot;: &quot;Point&quot;, #&gt;         &quot;coordinates&quot;: [-99.74, 32.45] #&gt;       }, #&gt;       &quot;properties&quot;: {} #&gt;     } #&gt;   ] #&gt; } <\/code><\/pre>\n<h4>wellknown<\/h4>\n<p>  <a href=\"https:\/\/cran.rstudio.com\/web\/packages\/wellknown\/\">cran<\/a> <a href=\"https:\/\/github.com\/ropensci\/wellknown\">github<\/a><\/p>\n<p>  <a href=\"https:\/\/github.com\/ropensci\/wellknown\">wellknown<\/a> \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0432 \u0438 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 well-known. \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 WKT\/WKB \u0432 GeoJSON \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 GeoJSON \u0438 WKT\/WKB, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f GeoJSON-\u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f WKT\/WKB \u0438\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 R (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 (data frame), \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432), \u0441\u0431\u043e\u0440\u043a\u0438 WKT.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"python\">library(&quot;wellknown&quot;) point(data.frame(lon = -116.4, lat = 45.2)) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"diff\">#&gt; [1] &quot;POINT (-116.4000000000000057 45.2000000000000028)&quot; <\/code><\/pre>\n<h4>gistr<\/h4>\n<p>  <a href=\"https:\/\/cran.rstudio.com\/web\/packages\/gistr\/\">cran<\/a> <a href=\"https:\/\/github.com\/ropensci\/gistr\">github<\/a><\/p>\n<p>  <a href=\"https:\/\/github.com\/ropensci\/gistr\">gistr<\/a> \u2014 \u044d\u0442\u043e \u043d\u0435 \u0433\u0435\u043e\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435, \u043d\u043e \u043e\u043d \u043a\u0440\u0430\u0439\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0434\u043b\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442. \u0421\u043a\u0430\u0436\u0435\u043c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0439 \u043d\u0430 GitHub.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>geojsonio<\/code>, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435:  <\/p>\n<pre><code class=\"python\">library(&quot;gistr&quot;) cat(geojson_json(us_cities[1:100,], lat = 'lat', lon = 'long'), file = &quot;map.geojson&quot;) gist_create(&quot;map.geojson&quot;) <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ae3\/b27\/c3d\/ae3b27c3d1164357b4a17913b24e1e3c.png\"\/><\/p>\n<h4>lawn<\/h4>\n<p>  <a href=\"https:\/\/cran.rstudio.com\/web\/packages\/lawn\/\">cran<\/a> <a href=\"https:\/\/github.com\/ropensci\/lawn\">github<\/a><\/p>\n<p>  R-\u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <a href=\"http:\/\/turfjs.org\/\">turf.js<\/a> (<i>\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0439 \u0433\u0435\u043e\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439<\/i>).<\/p>\n<p>  \u0412 <code>lawn<\/code> \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0432 <code>turf.js<\/code>. \u0410 \u0442\u0430\u043a\u0436\u0435:  <\/p>\n<ul>\n<li>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439-\u043e\u0431\u0435\u0440\u0442\u043e\u043a \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 <a href=\"https:\/\/github.com\/mapbox\/geojson-random\">geojson-random<\/a> (\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 geojson-\u0441\u0432\u043e\u0439\u0441\u0442\u0432);<\/li>\n<li>\u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>view()<\/code> \u0434\u043b\u044f \u043b\u0435\u0433\u043a\u043e\u0439 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432\u044b\u0437\u043e\u0432\u0430 <code>lawn<\/code>-\u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/li>\n<\/ul>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"python\">library(&quot;lawn&quot;) lawn_hex_grid(c(-96,31,-84,40), 50, 'miles') %&gt;% view <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2c5\/84d\/5b8\/2c584d5b827941b79903816f108c8712.png\"\/><\/p>\n<h4>geoaxe<\/h4>\n<p>  <a href=\"https:\/\/cran.rstudio.com\/web\/packages\/geoaxe\/\">cran<\/a> <a href=\"https:\/\/github.com\/ropenscilabs\/geoaxe\">github<\/a><\/p>\n<p>  R-\u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u0433\u0435\u043e\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0447\u0430\u0441\u0442\u0438.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"python\">library(&quot;geoaxe&quot;) library(&quot;rgeos&quot;) wkt &lt;- &quot;POLYGON((-180 -20, -140 55, 10 0, -140 -60, -180 -20))&quot; poly &lt;- rgeos::readWKT(wkt) polys &lt;- chop(x = poly) plot(poly, lwd = 6, mar = c(0, 0, 0, 0)) <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b13\/5ed\/938\/b135ed93882448619aff7ced1abb5229.png\"\/><\/p>\n<p>  \u0418 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u0447\u0430\u0441\u0442\u0438 \u043c\u043d\u043e\u0433\u043e\u0433\u0440\u0430\u043d\u043d\u0438\u043a:  <\/p>\n<pre><code class=\"python\">plot(polys, add = TRUE, mar = c(0, 0, 0, 0)) <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a28\/1b9\/248\/a281b924879e4ce59c13fed93faf6b92.png\"\/><\/p>\n<h4>proj<\/h4>\n<p>  cran <a href=\"https:\/\/github.com\/ropensci\/proj\">github<\/a><\/p>\n<p>  R-\u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <a href=\"https:\/\/github.com\/proj4js\/proj4js\">proj4js<\/a>, Javascript-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0439. <code>proj<\/code> \u0435\u0449\u0435 \u043d\u0435\u0442 \u043d\u0430 CRAN.<\/p>\n<h4>getlandsat<\/h4>\n<p>  cran <a href=\"https:\/\/github.com\/ropenscilabs\/getlandsat\">github<\/a><\/p>\n<p>  R-\u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u00ab\u043b\u0430\u043d\u0434\u0441\u0430\u0442\u00bb-\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449 AWS. <code>getlandsat<\/code> \u0435\u0449\u0435 \u043d\u0435\u0442 \u043d\u0430 CRAN.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"python\">library(&quot;getlandsat&quot;) head(lsat_scenes()) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"diff\">#&gt;                entityId     acquisitionDate cloudCover processingLevel #&gt; 1 LC80101172015002LGN00 2015-01-02 15:49:05      80.81            L1GT #&gt; 2 LC80260392015002LGN00 2015-01-02 16:56:51      90.84            L1GT #&gt; 3 LC82270742015002LGN00 2015-01-02 13:53:02      83.44            L1GT #&gt; 4 LC82270732015002LGN00 2015-01-02 13:52:38      52.29             L1T #&gt; 5 LC82270622015002LGN00 2015-01-02 13:48:14      38.85             L1T #&gt; 6 LC82111152015002LGN00 2015-01-02 12:30:31      22.93            L1GT #&gt;   path row   min_lat    min_lon   max_lat    max_lon #&gt; 1   10 117 -79.09923 -139.66082 -77.75440 -125.09297 #&gt; 2   26  39  29.23106  -97.48576  31.36421  -95.16029 #&gt; 3  227  74 -21.28598  -59.27736 -19.17398  -57.07423 #&gt; 4  227  73 -19.84365  -58.93258 -17.73324  -56.74692 #&gt; 5  227  62  -3.95294  -55.38896  -1.84491  -53.32906 #&gt; 6  211 115 -78.54179  -79.36148 -75.51003  -69.81645 #&gt;                                                                                 download_url #&gt; 1 https:\/\/s3-us-west-2.amazonaws.com\/landsat-pds\/L8\/010\/117\/LC80101172015002LGN00\/index.html #&gt; 2 https:\/\/s3-us-west-2.amazonaws.com\/landsat-pds\/L8\/026\/039\/LC80260392015002LGN00\/index.html #&gt; 3 https:\/\/s3-us-west-2.amazonaws.com\/landsat-pds\/L8\/227\/074\/LC82270742015002LGN00\/index.html #&gt; 4 https:\/\/s3-us-west-2.amazonaws.com\/landsat-pds\/L8\/227\/073\/LC82270732015002LGN00\/index.html #&gt; 5 https:\/\/s3-us-west-2.amazonaws.com\/landsat-pds\/L8\/227\/062\/LC82270622015002LGN00\/index.html #&gt; 6 https:\/\/s3-us-west-2.amazonaws.com\/landsat-pds\/L8\/211\/115\/LC82111152015002LGN00\/index.html <\/code><\/pre>\n<h4>siftgeojson<\/h4>\n<p>  cran <a href=\"https:\/\/github.com\/ropenscilabs\/siftgeojson\">github<\/a><\/p>\n<p>  \u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0441\u0440\u0435\u0437\u044b GeoJSON \u0442\u0430\u043a \u0436\u0435 \u043b\u0435\u0433\u043a\u043e, \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0431\u044b \u0441 \u043f\u0430\u043a\u0435\u0442\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 (data frame). \u042d\u0442\u043e \u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043d\u0430\u0434 <code>jqr<\/code>, R-\u043e\u0431\u0435\u0440\u0442\u043a\u0438 \u0434\u043b\u044f <a href=\"https:\/\/stedolan.github.io\/jq\/\">jq<\/a>, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 JSON.  <\/p>\n<pre><code class=\"python\">library(&quot;siftgeojson&quot;) # \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 file &lt;- system.file(&quot;examples&quot;, &quot;zillow_or.geojson&quot;, package = &quot;siftgeojson&quot;) json &lt;- paste0(readLines(file), collapse = &quot;&quot;) # \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043a\u0440\u0443\u0433 \u041c\u0430\u043b\u0442\u043d\u043e\u043c\u0430 (Multnomah), \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043a\u0440\u0443\u0433 \u041c\u0430\u043b\u0442\u043d\u043e\u043c\u0430 (Multnomah) sifter(json, COUNTY == Multnomah) %&gt;% jqr::index() %&gt;% jqr::dotstr(properties.COUNTY) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"diff\">#&gt; [ #&gt;     &quot;Multnomah&quot;, #&gt;     &quot;Multnomah&quot;, #&gt;     &quot;Multnomah&quot;, #&gt;     &quot;Multnomah&quot;, #&gt;     &quot;Multnomah&quot;, #&gt;     &quot;Multnomah&quot;, #&gt;     &quot;Multnomah&quot;, #&gt;     &quot;Multnomah&quot;, #&gt;     &quot;Multnomah&quot;, ... <\/code><\/pre>\n<h4>plotly<\/h4>\n<p>  <a href=\"https:\/\/cran.rstudio.com\/web\/packages\/plotly\/\">cran<\/a> <a href=\"https:\/\/github.com\/ropensci\/plotly\">github<\/a><\/p>\n<p>  <a href=\"https:\/\/github.com\/ropensci\/plotly\">plotly<\/a> \u2014 R-\u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <a href=\"https:\/\/plot.ly\/\">Plotly<\/a> \u2014 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438 API \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u0438.  <\/p>\n<pre><code class=\"python\">library(&quot;plotly&quot;) plot_ly(iris, x = Petal.Length, y = Petal.Width,         color = Species, mode = &quot;markers&quot;) <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/707\/972\/9e7\/7079729e71f04670a860359e648b5509.png\"\/><\/p>\n<h4>Maptools Task View<\/h4>\n<p>  <a href=\"https:\/\/github.com\/ropensci\/maptools\">github<\/a><\/p>\n<p>  <a href=\"http:\/\/jwhollister.com\/\">\u0414\u0436\u0435\u0444\u0444 \u0425\u043e\u043b\u043b\u0438\u0441\u0442\u0435\u0440<\/a> \u0441\u043e\u0437\u0434\u0430\u043b <a href=\"https:\/\/github.com\/ropensci\/maptools\">maptools task view<\/a> \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u0430\u0440\u0442\u0430\u043c\u0438 \u0432 R: \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0439, \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0445 \u0438 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u0430\u0440\u0442, \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442.\u0434.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/281400\/\"> https:\/\/habrahabr.ru\/post\/281400\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412\u0432\u043e\u0434\/\u0432\u044b\u0432\u043e\u0434, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0433\u0435\u043e\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u0437\u0430\u0434\u0430\u0447\u0438, \u043e\u0431\u0449\u0438\u0435 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u043e\u0433\u0438\u0435 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u041d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0435\u0442. \u041c\u044b \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u043d\u0430 <b>cran<\/b> \u0438\u043b\u0438 <b>github<\/b>.<\/p>\n<p>  \u041c\u044b \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0432 R \u0433\u0435\u043e\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u2014 \u0441\u043a\u043e\u0440\u0435\u0435, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u043b\u0435\u0433\u043a\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u0432\u0430\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-278353","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=278353"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278353\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=278353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=278353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=278353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}