{"id":291687,"date":"2019-07-05T14:36:24","date_gmt":"2019-07-05T14:36:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=291687"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=291687","title":{"rendered":"\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u043e\u0431\u0435\u0434 \u0443 \u043a\u043e\u043c\u0430\u043d\u0434 \u041d\u0411\u0410 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0442\u043e\u043b\u0431\u0438\u043a\u043e\u0432\u044b\u0445 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c \u0432 R"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0432\u0432\u043e\u0434\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0412\u043b\u0430\u0434\u0438\u0441\u043b\u0430\u0432 \u0438 \u043c\u043e\u0451 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 R \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u043e\u0441\u044c \u0432 \u0430\u0432\u0433\u0443\u0441\u0442\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430. \u0418\u0437\u0443\u0447\u0430\u0442\u044c \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0430. \u041c\u043d\u0435 \u0441 \u0434\u0435\u0442\u0441\u0442\u0432\u0430 \u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0432\u0435\u0441\u0442\u0438 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443. \u0421 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043e\u043c \u044d\u0442\u043e \u0443\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043a\u0430\u043a-\u0442\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0446\u0438\u0444\u0440\u044b \u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c, \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0443\u043c\u043d\u044b\u0435 \u043c\u044b\u0441\u043b\u0438. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043f\u043e\u0440\u0442 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0433\u043e\u0434\u044b \u0437\u0430\u0445\u043b\u0435\u0441\u0442\u043d\u0443\u043b\u0430 \u0432\u043e\u043b\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0441\u043e\u0440\u0435\u0432\u043d\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0432 \u043d\u0435\u0439\u0440\u043e\u043d\u043a\u0443 \u043b\u044e\u0431\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0444\u0443\u0442\u0431\u043e\u043b\u0438\u0441\u0442\u0430, \u0431\u0430\u0441\u043a\u0435\u0442\u0431\u043e\u043b\u0438\u0441\u0442\u0430, \u0431\u0435\u0439\u0441\u0431\u043e\u043b\u0438\u0441\u0442\u0430 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435. \u0418 Excel \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438. \u0422\u0430\u043a \u0447\u0442\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u0437\u0443\u0447\u0430\u0442\u044c R, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043d\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u043b \u043f\u043e\u043b\u0434\u043d\u044f. \u0423\u0436\u0435 \u0432 \u0445\u043e\u0434\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u043e\u043c\u0443, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043b\u0438\u0440\u0438\u043a\u0430.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0425\u043e\u0447\u0443 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u043e\u0435 \u0438\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044f \u043d\u0430\u043f\u0438\u0448\u0443 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c <del>\u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u0432 \u0421\u0438\u043c\u043f\u0441\u043e\u043d\u0430\u0445<\/del> \u0431\u044b\u043b\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habr.com\/ru\/company\/skillbox\/blog\/446952\/\">\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 R.<\/a> \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/towardsdatascience.com\/create-animated-bar-charts-using-r-31d09e5841da\">Create Trending Animated Bar Charts using R<\/a> \u0441 Medium. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u043a-\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u044f \u0434\u0435\u043b\u0430\u044e\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0442\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0437\u0430\u043b\u0438\u0432\u043a\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0446\u0432\u0435\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u041d\u0411\u0410, \u0430 \u043d\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u0430\u043b\u0438\u0442\u0440\u0443 <code>ggplot2<\/code>, \u0430 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442 <code>data.table<\/code>, \u0430 \u043d\u0435 <code>dplyr<\/code>. \u0412\u0441\u0451 \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0443 \u043c\u0435\u043d\u044f \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 \u0432\u0438\u0434\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u0433\u043e\u0434\u044b, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0431\u0435\u0434 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<h2 id=\"dannye\">\u0414\u0430\u043d\u043d\u044b\u0435<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0431\u0435\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 30 \u043a\u043e\u043c\u0430\u043d\u0434 \u041d\u0411\u0410 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 15 \u0441\u0435\u0437\u043e\u043d\u0430\u0445. \u0421\u043e\u0431\u0440\u0430\u043d\u044b \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u0441 \u0441\u0430\u0439\u0442\u0430 <a href=\"https:\/\/stats.nba.com\/\">stats.nba.com<\/a> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f <strong>NBA Data Retriever<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0447\u0435\u0440\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 NBA API \u0432\u044b\u0434\u0430\u0451\u0442 csv-\u0444\u0430\u0439\u043b\u044b \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u043e\u0439. \u0412\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/github.com\/shufinskiy\/nba_cumulative_wins\/blob\/master\/data\/standings.csv\">\u043d\u0430 Github<\/a>.<\/p>\n<p>  <\/p>\n<h2 id=\"ispolzuemye-biblioteki\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/h2>\n<p>  <\/p>\n<pre><code class=\"plaintext\">library(data.table) library(tidyverse) library(gganimate)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <code>data.table<\/code> (\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u043c \u0440\u0430\u043d\u044c\u0448\u0435). \u0422\u0430\u043a\u0436\u0435 \u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 <code>tidyverse<\/code>, \u0430 \u043d\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 <code>ggplot2<\/code> \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0432 \u0445\u043e\u0434\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0438\u0434\u0435\u044f, \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0430\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0438 <code>ggplot2<\/code>, \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u043d\u0430\u0431\u043e\u0440\u0430 \u043d\u0435 \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u044e\u0442. \u041d\u0443 \u0438 <code>gganimate<\/code> &quot;\u043f\u0440\u0438\u0434\u0430\u0451\u0442&quot; \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<h2 id=\"rabota-s-dannymi\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043e\u043a. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e 2 \u0438\u0437 79 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 &quot;\u0441\u044b\u0440\u044b\u043c\u0438&quot; \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u041c\u043e\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b, \u043c\u043e\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u042f \u043f\u043e\u0448\u0451\u043b \u043f\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0443\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0432 <code>data.table<\/code> \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434 <code>dt[i, j, by]<\/code>, \u0433\u0434\u0435 by &quot;\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e&quot; \u0437\u0430 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0413\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044f \u0431\u0443\u0434\u0443 \u043f\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0443 TeamName. \u0418 \u0437\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c \u0437\u0430\u0433\u0432\u043e\u0437\u0434\u043a\u0430. \u0412 \u044d\u0442\u043e\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434: Lakers, Celtics, Heat \u0438 \u0442.\u0434. \u041d\u043e \u0437\u0430 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 (\u0441 \u0441\u0435\u0437\u043e\u043d\u0430 2004\/05) \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f: New Orleans Hornets \u0441\u0442\u0430\u043b\u0438 New Orleans Pelicans, Charlotte Bobcats \u0432\u0435\u0440\u043d\u0443\u043b\u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 Charlotte Hornets, \u0430 Seattle Supersonics \u0441\u0442\u0430\u043b\u0438 Oklahoma City Thunder. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u0430. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">table1 &lt;- table[TeamCity == &quot;New Orleans&quot; &amp; TeamName == &quot;Hornets&quot;,                  TeamName := &quot;Pelicans&quot;][                 TeamCity == &quot;New Orleans\/Oklahoma City&quot; &amp; TeamName == &quot;Hornets&quot;,                 TeamName := &quot;Pelicans&quot;][                 TeamName == &quot;Bobcats&quot;, TeamName := &quot;Hornets&quot;][                 TeamName == &quot;SuperSonics&quot;, TeamName := &quot;Thunder&quot;]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u0440\u0435\u0437\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b, \u043d\u043e \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c, \u0442\u043e \u043f\u043e TeamName \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e \u0438 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u043c. \u0412 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u0442\u043e TeamID.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 &quot;\u043b\u0438\u0448\u043d\u0435\u0439&quot; \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u043d\u0430\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">table1 &lt;- table1[ , .(TeamName, WINS)]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 <code>data.table<\/code> \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f .() \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>list<\/code>. \u0411\u043e\u043b\u0435\u0435 &quot;\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439&quot; \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u044d\u0442\u043e <code>table1 &lt;- table1[, c(&quot;TeamName&quot;, &quot;WINS&quot;)]<\/code>. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434:<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>TeamName<\/th>\n<th>WINS<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Suns<\/td>\n<td>62<\/td>\n<\/tr>\n<tr>\n<td>Heat<\/td>\n<td>59<\/td>\n<\/tr>\n<tr>\n<td>Spurs<\/td>\n<td>59<\/td>\n<\/tr>\n<tr>\n<td>Pistons<\/td>\n<td>54<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0435\u0437\u043e\u043d\u0443 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0430 \u0432\u043e\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0447\u0451\u0442\u0430 \u043e\u0431\u0449\u0435\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u043e\u0431\u0435\u0434 \u0437\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0443\u043c\u0443\u043b\u044f\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u043f\u043e\u0431\u0435\u0434.<\/p>\n<p>  <\/p>\n<p><code>table1 &lt;- table1[, CumWins := cumsum(WINS), by = &quot;TeamName&quot;]<\/code><\/p>\n<p>  <\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>cumsum<\/code> \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u0447\u0438\u0441\u043b\u0430. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 := \u0432\u043c\u0435\u0441\u0442\u043e = \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u044f \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0451 \u0441 \u043e\u0434\u043d\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u043c CumWins. <code>by = &quot;TeamName&quot;<\/code> \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043a\u0443\u043c\u0443\u043b\u044f\u0442\u0438\u0432\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 30 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441 \u0433\u043e\u0434\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0437\u043e\u043d. \u0421\u0435\u0437\u043e\u043d \u0432 \u041d\u0411\u0410 \u0438\u0434\u0451\u0442 \u0441 \u043e\u043a\u0442\u044f\u0431\u0440\u044f \u043f\u043e \u043c\u0430\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u0434\u0432\u0430 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u043d\u044b\u0445 \u0433\u043e\u0434\u0430. \u0412 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 \u0441\u0435\u0437\u043e\u043d\u0430 \u0433\u043e\u0434 \u0435\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430, \u0442.\u0435. Season: 2018 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u044d\u0442\u043e \u0441\u0435\u0437\u043e\u043d 2018\/19 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0435\u0441\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435. \u0412 \u0441\u0442\u043e\u043b\u0431\u0446\u0435 SeasonID \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0446\u0438\u0444\u0440\u0430 \u0432 \u0432\u0438\u0434\u0435 2(\u0433\u043e\u0434 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0435\u0437\u043e\u043d\u0430), \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 22004. \u041c\u043e\u0436\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0434\u0432\u043e\u0439\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 <code>stringr<\/code> \u0438\u043b\u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 R, \u043d\u043e \u044f \u043f\u043e\u0448\u0451\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0451\u043c. \u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044f \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u044d\u0442\u043e\u0442 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0441\u0435\u0437\u043e\u043d\u043e\u0432, \u043f\u043e\u0442\u043e\u043c \u0443\u0434\u0430\u043b\u044f\u044e \u0438 \u0441\u043e\u0437\u0434\u0430\u044e \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441 \u0434\u0430\u0442\u0430\u043c\u0438 \u0432\u043d\u043e\u0432\u044c. \u041b\u0438\u0448\u043d\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u042f \u0441\u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <\/p>\n<p><code>table1 &lt;- table1[,year := rep(seq(2004, 2018), each = length(unique(table1$TeamName)))]<\/code><\/p>\n<p>  <\/p>\n<p>\u041c\u043d\u0435 &quot;\u043f\u043e\u0432\u0435\u0437\u043b\u043e&quot;, \u0447\u0442\u043e \u0437\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u041d\u0411\u0410 \u043d\u0435 \u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0446\u0438\u0444\u0440\u044b \u043e\u0442 2004 \u0434\u043e 2018 30 \u0440\u0430\u0437. \u041e\u043f\u044f\u0442\u044c-\u0442\u0430\u043a\u0438 \u0435\u0441\u043b\u0438 \u0443\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u044e, \u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0443\u0434\u043e\u0431\u0435\u043d \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0435\u0437\u043e\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043d\u044b\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u043e\u0447\u0438\u0441\u0442\u043a\u043e\u0439 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 SeasonID.<\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 cumrank.<\/p>\n<p>  <\/p>\n<p><code>table1 &lt;- table1[, cumrank := frank(-CumWins, ties.method = &quot;random&quot;), by = &quot;year&quot;]<\/code><\/p>\n<p>  <\/p>\n<p>\u041e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0435\u0437\u043e\u043d\u0435 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u043e\u0431\u0435\u0434 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0441\u0438 X. <code>frank<\/code> \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 <code>data.table<\/code> \u0430\u043d\u0430\u043b\u043e\u0433 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e <code>rank<\/code>, \u043c\u0438\u043d\u0443\u0441 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044f (\u0442\u0430\u043a\u0436\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <code>decreasing = TRUE<\/code>. \u041c\u043d\u0435 \u043d\u0435\u0432\u0430\u0436\u043d\u043e \u0432 \u043a\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0434\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043f\u043e\u0431\u0435\u0434, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 <code>ties.method = &quot;random&quot;<\/code>. \u041d\u0443 \u0438 \u0432\u0441\u0451 \u044d\u0442\u043e \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0433\u043e\u0434\u0430.<\/p>\n<p>  <\/p>\n<p>\u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u2014 \u044d\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 <code>value_rel<\/code>.<\/p>\n<p>  <\/p>\n<p><code>table1 &lt;- table1[, value_rel := CumWins\/CumWins[cumrank==1], by = &quot;year&quot;]<\/code><\/p>\n<p>  <\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u043f\u043e\u0431\u0435\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043a \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e \u0437\u0430 \u0433\u043e\u0434. \u0423 \u043b\u0443\u0447\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u044d\u0442\u043e\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0440\u0430\u0432\u0435\u043d 1, \u0443 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u043d\u044c\u0448\u0435, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0437\u043e\u043d\u0430.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434:<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>TeamName<\/th>\n<th>WINS<\/th>\n<th>CumWins<\/th>\n<th>year<\/th>\n<th>cumrank<\/th>\n<th>value_rel<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Spurs<\/td>\n<td>59<\/td>\n<td>59<\/td>\n<td>2004<\/td>\n<td>3<\/td>\n<td>0.9516129<\/td>\n<\/tr>\n<tr>\n<td>Spurs<\/td>\n<td>63<\/td>\n<td>122<\/td>\n<td>2005<\/td>\n<td>1<\/td>\n<td>1.0000000<\/td>\n<\/tr>\n<tr>\n<td>Spurs<\/td>\n<td>58<\/td>\n<td>180<\/td>\n<td>2006<\/td>\n<td>2<\/td>\n<td>0.9729730<\/td>\n<\/tr>\n<tr>\n<td>Spurs<\/td>\n<td>56<\/td>\n<td>236<\/td>\n<td>2007<\/td>\n<td>1<\/td>\n<td>1.0000000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0443\u043c\u0443\u043b\u044f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c. \u0412\u0441\u0435 \u044d\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u0435\u043b\u0430\u044e\u0442\u0441\u044f, \u043a\u0430\u043a \u0438 \u0432 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439, \u043a\u0430\u0441\u043a\u0430\u0434\u043e\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">table1 &lt;- table1[   ,.(TeamName, WINS)][     , CumWins := cumsum(WINS), by = &quot;TeamName&quot;][       ,year := rep(seq(2004, 2018), each = length(unique(table1$TeamName)))][         , cumrank := frank(-CumWins, ties.method = &quot;random&quot;), by = &quot;year&quot;][           , value_rel := CumWins\/CumWins[cumrank==1], by = &quot;year&quot;]<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"izmenenie-zalivki-stolbcov-so-standartnoy-na-cveta-komand\">\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u043b\u0438\u0432\u043a\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u043d\u0430 \u0446\u0432\u0435\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434.<\/h2>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044e \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432, \u043d\u043e \u0435\u0441\u0442\u044c \u0435\u0449\u0451, \u043a\u0430\u043a \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u0446\u0432\u0435\u0442 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435. \u041c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u0430\u043b\u0438\u0442\u0440\u0443 <code>ggplot2<\/code>, \u043d\u043e \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043a\u0430\u043a \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043e\u043d\u0430 \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u0430. \u0410 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u044f\u0435\u0442 \u043f\u043e\u0438\u0441\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435. \u0423 \u043f\u043e\u043a\u043b\u043e\u043d\u043d\u0438\u043a\u043e\u0432 \u041d\u0411\u0410 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434 \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c: \u0411\u043e\u0441\u0442\u043e\u043d \u2014 \u044d\u0442\u043e \u0437\u0435\u043b\u0451\u043d\u044b\u0439, \u0427\u0438\u043a\u0430\u0433\u043e \u2014 \u043a\u0440\u0430\u0441\u043d\u044b\u0439, \u0421\u0430\u043a\u0440\u0430\u043c\u0435\u043d\u0442\u043e \u2014 \u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0439 \u0438 \u0442.\u0434. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0437\u0430\u043b\u0438\u0432\u043a\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0435\u0451 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043e\u0431\u0438\u043b\u0438\u0435 \u0441\u0438\u043d\u0435\u0433\u043e \u0438 \u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 <code>table_color<\/code> \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u0435\u0451 \u0446\u0432\u0435\u0442\u043e\u043c. \u0426\u0432\u0435\u0442\u0430 \u0432\u0437\u044f\u0442\u044b \u0441 \u0441\u0430\u0439\u0442\u0430 <a href=\"https:\/\/teamcolorcodes.com\/\">teamcolorcodes.com<\/a>.<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>TeamName<\/th>\n<th>TEAM_color<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Hawks<\/td>\n<td>#E03A3E<\/td>\n<\/tr>\n<tr>\n<td>Celtics<\/td>\n<td>#007A33<\/td>\n<\/tr>\n<tr>\n<td>Nets<\/td>\n<td>#000000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u0421 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0446\u0432\u0435\u0442\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u043d\u0443 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u044e. \u0422.\u043a. \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0444\u0430\u043a\u0442\u043e\u0440\u044b, \u0442\u043e \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f. \u041f\u0435\u0440\u0432\u043e\u0439 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0442\u0438 \u0424\u0438\u043b\u0430\u0434\u0435\u043b\u044c\u0444\u0438\u044f 76, \u043a\u0430\u043a \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u044c &quot;\u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0433\u043e&quot; \u0438\u043c\u0435\u043d\u0438, \u0430 \u0434\u0430\u043b\u0435\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0443. \u0422\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u043c \u0438 \u0446\u0432\u0435\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u0442\u043e\u043c \u0436\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0430 \u0437\u0430\u0442\u0435\u043c \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0435\u043a\u0442\u043e\u0440, \u0438\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439. \u042f \u0441\u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">  table_color &lt;- table_color[order(TeamName)]   cols &lt;- table_color[, &quot;TEAM_color&quot;]<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"postroenie-grafika\">\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0430<\/h2>\n<p>  <\/p>\n<p>\u041c\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u043c \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0433\u0440\u0430\u0444\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 450 (15 \u0441\u0435\u0437\u043e\u043d\u043e\u0432 * 30 \u043a\u043e\u043c\u0430\u043d\u0434) \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u043e\u0431\u0435\u0434, \u0430 \u0437\u0430\u0442\u0435\u043c &quot;\u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c&quot; \u0435\u0433\u043e \u043f\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e \u0433\u043e\u0434\u0430\u043c) \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>gganimate<\/code>.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">gg &lt;- ggplot(table1, aes(cumrank, group = TeamName, fill = as.factor(TeamName),                            color = as.factor(TeamName))) +        geom_tile(aes(y = CumWins\/2,                         height = CumWins,                         width = 0.7), color = NA, alpha = 0.8)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>ggplot<\/code>. \u0412 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0435 <code>aes<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435. \u041c\u044b \u0438\u0445 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u043e TeamName, <code>fill<\/code> \u0438 <code>color<\/code>\u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430 \u0446\u0432\u0435\u0442 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0430\u0432\u0434\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c\u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0432\u0435\u0440\u043d\u043e. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>geom_tile<\/code> \u043c\u044b &quot;\u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c&quot; \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043d\u0430 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430:<br \/>  <img decoding=\"async\" src=\"https:\/\/cdn.tribuna.com\/fetch\/?url=https%3A%2F%2Fd.radikal.ru%2Fd05%2F1906%2Ff1%2F4b2e3c7d3c0d.jpg\"\/><br \/>  \u0412\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u0433\u0440\u0430\u0444\u0438\u043a &quot;\u043f\u043e\u0434\u0435\u043b\u0451\u043d&quot; \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b (\u043e\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0438\u0437 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u043b\u043e\u044f <code>coord_equal()<\/code>), \u043f\u043e \u0442\u0440\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435. \u041d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0443 <code>width<\/code> \u043c\u0435\u043d\u044c\u0448\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u043d\u0430\u0448\u0430 \u043f\u043b\u0438\u0442\u043a\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0438\u0434 \u0441\u0442\u043e\u043b\u0431\u0438\u043a\u043e\u0432.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">    geom_text(aes(y = 0, label = paste(TeamName, &quot; &quot;)), vjust = 0.2,      hjust = 1, size = 6) +     geom_text(aes(y = CumWins, label = paste0(&quot; &quot;,round(CumWins))),      hjust = 0, size = 7) +     coord_flip(clip = &quot;off&quot;, expand = FALSE) +     scale_fill_manual(values = cols) +     scale_color_manual(values = cols) +     scale_y_continuous(labels = scales::comma) +     scale_x_reverse() +     guides(color = FALSE, fill = FALSE) +<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0434\u0432\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>geom_text<\/code>: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u0447\u0438\u0441\u043b\u043e \u043f\u043e\u0431\u0435\u0434. <code>coord_flip<\/code> \u043c\u0435\u043d\u044f\u0435\u0442 \u043e\u0441\u0438 \u043c\u0435\u0441\u0442\u0430\u043c\u0438, <code>scale_fill_manual<\/code> \u0438 <code>scale_color_manual<\/code> \u043c\u0435\u043d\u044f\u044e\u0442 \u0446\u0432\u0435\u0442 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432, <code>scale_x_reverse<\/code>&quot;\u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442&quot; \u043e\u0441\u044c \u0425. \u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447 \u0442\u043e \u0446\u0432\u0435\u0442\u0430 \u043c\u044b \u0431\u0435\u0440\u0451\u043c \u0438\u0437 \u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0435\u043a\u0442\u043e\u0440\u0430 <code>cols<\/code>.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0441\u043b\u043e\u0435 <code>theme<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430. \u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043e\u0441\u0435\u0439 (\u043d\u0438\u043a\u0430\u043a, \u043e \u0447\u0451\u043c \u043d\u0430\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442 <code>element_blank<\/code> \u0432 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430). \u041c\u044b \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043b\u0435\u0433\u0435\u043d\u0434\u0443, \u0444\u043e\u043d, \u0440\u0430\u043c\u043a\u0443, \u043b\u0438\u043d\u0438\u0438 \u0441\u0435\u0442\u043a\u0438 \u043f\u043e \u043e\u0441\u0438 Y. \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 <code>plot.title<\/code>, <code>plot.subtitle<\/code>, <code>plot.caption<\/code> \u043c\u044b \u0437\u0430\u0434\u0430\u0451\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430, \u043f\u043e\u0434\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/ggplot2.tidyverse.org\/reference\/theme.html\">gglot2<\/a><\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">theme(axis.line=element_blank(),           axis.text.x=element_blank(),           axis.text.y=element_blank(),           axis.ticks=element_blank(),           axis.title.x=element_blank(),           axis.title.y=element_blank(),           legend.position=&quot;none&quot;,           panel.background=element_blank(),           panel.border=element_blank(),           panel.grid.major=element_blank(),           panel.grid.minor=element_blank(),           panel.grid.major.x = element_line( size=.1, color=&quot;grey&quot; ),           panel.grid.minor.x = element_line( size=.1, color=&quot;grey&quot; ),           plot.title=element_text(size=25, hjust=0.5, face=&quot;bold&quot;,            colour=&quot;black&quot;, vjust=-1),           plot.subtitle = element_text(size = 15),           plot.caption =element_text(size=15, hjust=0.5, color=&quot;black&quot;),           plot.background=element_blank(),           plot.margin = margin(2,2, 2, 4, &quot;cm&quot;))<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"sozdanie-animacii\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>transition_states<\/code> \u044f \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u044d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0435\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435. \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f <code>labs<\/code> \u0442\u043e \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043f\u043e\u0434\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u0430. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <code>{closest_state}<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0433\u043e\u0434, \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">  anim &lt;- gg + transition_states(year, transition_length = 4, state_length = 1) +     view_follow(fixed_x = TRUE)  +     labs(title = &quot;Cumulative Wins by teams in seasons&quot;,          subtitle =  &quot;Season: {closest_state}&quot;,          caption  = &quot;Telegram: @NBAatlantic, Twitter: @vshufiskiy\\n          Data sourse: stats.nba.com&quot;)<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"funkciya-nba_cumulative_wins-dlya-sozdaniya-grafikov\">\u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>nba_cumulative_wins<\/code> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432.<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0438 \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u0435\u0441\u043b\u0438 \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0430. \u041e\u0431\u044b\u0447\u043d\u043e, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432 R \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">\u0438\u043c\u044f_\u0444\u0443\u043d\u043a\u0446\u0438\u0438 &lt;- function(\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438) {       \u0442\u0435\u043b\u043e_\u0444\u0443\u043d\u043a\u0446\u0438\u0438 }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u0435\u0451 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b. \u041f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u2014 \u044d\u0442\u043e \u0438\u043c\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u0430\u0451\u0442\u0441\u044f \u043d\u0430 \u0432\u0445\u043e\u0434. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0435\u0451, \u0435\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442 \u0442\u0430\u043a\u043e\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u044f \u0432 \u0441\u0430\u043c\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0422\u0430\u043a\u0436\u0435 \u044f \u0445\u043e\u0447\u0443, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043c\u043e\u0433\u043b\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043a\u043e\u043c\u0430\u043d\u0434: \u043e\u0442 \u043e\u0434\u043d\u043e\u0439 (\u0447\u0442\u043e \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e) \u0434\u043e 30 (\u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0442). \u0422\u0430\u043a \u0436\u0435 \u043c\u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u044b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0442\u0435\u0445 15 \u043b\u0435\u0442, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0412\u0441\u0451 \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">nba_cumulative_wins &lt;- function(table, elements, first_season, last_season){ ... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0433\u0434\u0435 <code>table<\/code> \u2014 \u0438\u043c\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0432\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438,<br \/>  <code>elements<\/code> \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435<br \/>  <code>first_season<\/code> \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0435\u0437\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435<br \/>  <code>last_season<\/code> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0435\u0437\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441 \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0422\u043e\u0433\u0434\u0430, \u0435\u0441\u043b\u0438 \u0441\u0440\u0435\u0434\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u043d \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c<\/p>\n<p>  <\/p>\n<p><code>nba_cumulative_wins &lt;- function(table, elements, first_season, last_season = 2018)<\/code><\/p>\n<p>  <\/p>\n<p>\u0442\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u0442\u0440\u043e\u0438\u0442\u044c\u0441\u044f \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \u0441\u0435\u0437\u043e\u043d\u0430 2018\/19, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0438\u043d\u043e\u0435.<\/p>\n<p>  <\/p>\n<h2 id=\"rabota-s-argumentami-elements-first_season-last_season\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 <code>elements<\/code>, <code>first_season<\/code>, <code>last_season<\/code><\/h2>\n<p>  <\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <code>elements<\/code> \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 2 \u0438\u043b\u0438 3, \u043d\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0432\u0441\u044e \u043b\u0438\u0433\u0443 \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <code>elements = c()<\/code> \u0438 \u0432 \u0441\u043a\u043e\u0431\u043e\u0447\u043a\u0430\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 30 \u043a\u043e\u043c\u0430\u043d\u0434. <\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b &quot;\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c&quot; \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <code>elements<\/code> \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u0440\u0443\u043f\u043f.<br \/>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>nba_cumulative_wins<\/code> \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0434\u0438\u0432\u0438\u0437\u0438\u043e\u043d\u043e\u0432, \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0438\u043b\u0438 \u041d\u0411\u0410 \u0432 \u0446\u0435\u043b\u043e\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043d\u043e\u044e \u0431\u044b\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">  select_teams &lt;- unique(table1$TeamName)   select_div &lt;- unique(table1$Division)   select_conf &lt;- unique(table1$Conference)   select_nba &lt;- &quot;NBA&quot;    table1 &lt;- if(elements %in% select_teams){     table1[TeamName %in% elements]   } else if (elements %in% select_div){     table1[Division %in% elements]   } else if(elements %in% select_conf){     table1[Conference %in% elements]   } else if(elements == &quot;NBA&quot;){     table1   } else {     NULL   }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u0430 <code>select_<\/code> \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 30 \u043a\u043e\u043c\u0430\u043d\u0434, 6 \u0434\u0438\u0432\u0438\u0437\u0438\u043e\u043d\u043e\u0432, 2 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0438 \u041d\u0411\u0410, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>unique<\/code> \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u0432\u043c\u0435\u0441\u0442\u043e 15 (\u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043b\u0435\u0442 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445).<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 <code>if...else<\/code> \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <code>elements<\/code> \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 (<code>%in%<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u0443), \u0438 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u044d\u0442\u0438\u043c \u0432\u0438\u0434\u043e\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434, \u0438\u0433\u0440\u0430\u044e\u0449\u0438\u0445 \u0432 \u042e\u0433\u043e-\u0437\u0430\u043f\u0430\u0434\u043d\u043e\u043c \u0434\u0438\u0432\u0438\u0437\u0438\u043e\u043d\u0435 \u0432\u043c\u0435\u0441\u0442\u043e <\/p>\n<p>  <\/p>\n<p><code>elements = c(&quot;Mavericks&quot;, &quot;Spurs&quot;, &quot;Rockets&quot;, &quot;Grillies&quot;, &quot;Pelicans&quot;)<\/code><\/p>\n<p>  <\/p>\n<p>\u043c\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 <\/p>\n<p>  <\/p>\n<p><code>elements = &quot;Southwest&quot;<\/code>, \u0447\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u0443\u0434\u043e\u0431\u043d\u0435\u0435.<\/p>\n<p>  <\/p>\n<p>\u0418\u0437-\u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u0435\u0437\u043e\u043d\u043e\u0432 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u0442\u0430\u043c\u0438. \u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">table1 &lt;- table1[SeasonID &gt;= as.numeric(paste(2, first_season, sep = &quot;&quot;))  &amp; SeasonID &lt;= as.numeric(paste(2, last_season, sep = &quot;&quot;))]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u043c\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b. \u0422\u0430\u043a\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0430 <code>year<\/code>. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">table1 &lt;- table1[ ,year := rep(seq(first_season, last_season),  each = length(unique(table1$TeamName)))]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <code>table_color<\/code>\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e &quot;\u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c&quot; \u043d\u0430\u0448\u0438 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043d\u043e\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e <code>if...else<\/code>.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\"> elements1 &lt;- if (elements == &quot;NBA&quot;){     c(&quot;Hawks&quot;, &quot;Celtics&quot;, &quot;Nets&quot;, &quot;Hornets&quot;,        &quot;Bulls&quot;, &quot;Cavaliers&quot;, &quot;Mavericks&quot;,        &quot;Nuggets&quot;, &quot;Pistons&quot;, &quot;Warriors&quot;, &quot;Rockets&quot;,        &quot;Pacers&quot;, &quot;Clippers&quot;, &quot;Lakers&quot;, &quot;Grizzlies&quot;,       &quot;Heat&quot;, &quot;Bucks&quot;, &quot;Timberwolves&quot;, &quot;Pelicans&quot;,        &quot;Knicks&quot;, &quot;Thunder&quot;, &quot;Magic&quot;, &quot;76ers&quot;, &quot;Suns&quot;,        &quot;Trail Blazers&quot;,&quot;Kings&quot;, &quot;Spurs&quot;, &quot;Raptors&quot;,        &quot;Jazz&quot;, &quot;Wizards&quot;)   } else if (elements == &quot;West&quot;) {     c(&quot;Mavericks&quot;,&quot;Nuggets&quot;, &quot;Warriors&quot;, &quot;Rockets&quot;,        &quot;Clippers&quot;, &quot;Lakers&quot;, &quot;Grizzlies&quot;,&quot;Timberwolves&quot;,        &quot;Pelicans&quot;, &quot;Thunder&quot;, &quot;Suns&quot;, &quot;Trail Blazers&quot;,&quot;Kings&quot;, &quot;Spurs&quot;,        &quot;Jazz&quot;)   } else if (elements == &quot;East&quot;) {     c(&quot;Hawks&quot;, &quot;Celtics&quot;, &quot;Nets&quot;, &quot;Hornets&quot;,        &quot;Bulls&quot;, &quot;Cavaliers&quot;,&quot;Pistons&quot;, &quot;Pacers&quot;,       &quot;Heat&quot;, &quot;Bucks&quot;, &quot;Knicks&quot;, &quot;Magic&quot;, &quot;76ers&quot;,       &quot;Raptors&quot;, &quot;Wizards&quot;)   } else if (elements == &quot;Pacific&quot;) {     c(&quot;Warriors&quot;, &quot;Clippers&quot;, &quot;Lakers&quot;, &quot;Suns&quot;, &quot;Kings&quot;)   } else if (elements == &quot;Southeast&quot;) {     c(&quot;Magic&quot;, &quot;Hornets&quot;, &quot;Heat&quot;, &quot;Hawks&quot;, &quot;Wizards&quot;)   } else if (elements == &quot;Southwest&quot;) {     c(&quot;Mavericks&quot;, &quot;Grizzlies&quot;, &quot;Pelicans&quot;, &quot;Rockets&quot;, &quot;Spurs&quot;)   } else if (elements == &quot;Central&quot;) {     c(&quot;Bucks&quot;, &quot;Pacers&quot;, &quot;Pistons&quot;, &quot;Bulls&quot;, &quot;Cavaliers&quot;)   } else if (elements == &quot;Atlantic&quot;) {     c(&quot;Knicks&quot;, &quot;Nets&quot;, &quot;Celtics&quot;, &quot;Raptors&quot;, &quot;76ers&quot;)   } else if (elements == &quot;Northwest&quot;) {     c(&quot;Nuggets&quot;, &quot;Trail Blazers&quot;, &quot;Jazz&quot;, &quot;Thunder&quot;, &quot;Suns&quot;)   } else {     elements   }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b, \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u044d\u0442\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 <code>table_color<\/code> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>inner_join<\/code> \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>dplyr<\/code>. <code>inner_join<\/code> \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u043e\u0431\u0435\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">  table_elements1 &lt;- data.table(TeamName = elements1)    table_color &lt;- table_color[order(TeamName)]   inner_table_color &lt;- inner_join(table_color, table_elements1)    cols &lt;- inner_table_color[, &quot;TEAM_color&quot;]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0438 \u043f\u043e\u0434\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430. \u041e\u043d\u0438 \u043f\u0440\u0438\u043c\u0438\u043d\u0430\u044e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u0438\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">anim &lt;- gg + transition_states(year, transition_length = 4, state_length = 1) +     view_follow(fixed_x = TRUE)  +     labs(title = paste(&quot;Cumulative Wins by teams in seasons&quot;,                         first_season, &quot;-&quot;, last_season, sep = &quot; &quot;),          subtitle = paste(if (elements %in% select_div ){            paste(elements, &quot;Division&quot;, sep = &quot; &quot;)          } else if (elements %in% select_conf ){            paste(&quot;Conference&quot;, elements, sep = &quot; &quot;)          }, &quot;Season: {closest_state}&quot;, sep = &quot; &quot;),          caption  = &quot;Telegram: @NBAatlantic, Twitter: @vshufiskiy\\nData sourse: stats.nba.com&quot;)<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"rendering\">\u0420\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433<\/h2>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u0451 \u044d\u0442\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f. <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">animate(anim,          nframes = (last_season - first_season + 1) *         (length(unique(table1$TeamName)) + 20),         fps = 20,  width = 1200, height = 1000,          renderer =          gifski_renderer(paste(elements[1], &quot;cumwins.gif&quot;, sep = &quot;_&quot;)))<\/code><\/pre>\n<p>  <\/p>\n<p>\u0447\u0438\u0441\u043b\u043e \u0432 <code>nframes<\/code> \u044f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043b \u043e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c, \u0447\u0442\u043e\u0431\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u043b\u0430\u0441\u044c\/\u0443\u043c\u0435\u043d\u044c\u0448\u0430\u043b\u0430\u0441\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c.<\/p>\n<p>  <\/p>\n<h2 id=\"grafik\">\u0413\u0440\u0430\u0444\u0438\u043a<\/h2>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.tribuna.com\/fetch\/?url=https%3A%2F%2Fa.radikal.ru%2Fa06%2F1906%2Fe5%2Fcf815c3f526d.gif\"\/><\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043c\u043e\u0439 \u043f\u043e\u0441\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c. \u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 <a href=\"https:\/\/github.com\/shufinskiy\/nba_cumulative_wins\">Github<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0412\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u0430\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439, \u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u043c\u043e\u0439 \u0431\u043b\u043e\u0433 \u043d\u0430 sports.ru &quot;\u041f\u043e \u043e\u0431\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0410\u0442\u043b\u0430\u043d\u0442\u0438\u043a\u0438&quot;<\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \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:\/\/habr.com\/ru\/post\/458904\/\"> https:\/\/habr.com\/ru\/post\/458904\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0432\u0432\u043e\u0434\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0412\u043b\u0430\u0434\u0438\u0441\u043b\u0430\u0432 \u0438 \u043c\u043e\u0451 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 R \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u043e\u0441\u044c \u0432 \u0430\u0432\u0433\u0443\u0441\u0442\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430. \u0418\u0437\u0443\u0447\u0430\u0442\u044c \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0430. \u041c\u043d\u0435 \u0441 \u0434\u0435\u0442\u0441\u0442\u0432\u0430 \u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0432\u0435\u0441\u0442\u0438 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443. \u0421 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043e\u043c \u044d\u0442\u043e \u0443\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043a\u0430\u043a-\u0442\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0446\u0438\u0444\u0440\u044b \u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c, \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0443\u043c\u043d\u044b\u0435 \u043c\u044b\u0441\u043b\u0438. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043f\u043e\u0440\u0442 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0433\u043e\u0434\u044b \u0437\u0430\u0445\u043b\u0435\u0441\u0442\u043d\u0443\u043b\u0430 \u0432\u043e\u043b\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0441\u043e\u0440\u0435\u0432\u043d\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0432 \u043d\u0435\u0439\u0440\u043e\u043d\u043a\u0443 \u043b\u044e\u0431\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0444\u0443\u0442\u0431\u043e\u043b\u0438\u0441\u0442\u0430, \u0431\u0430\u0441\u043a\u0435\u0442\u0431\u043e\u043b\u0438\u0441\u0442\u0430, \u0431\u0435\u0439\u0441\u0431\u043e\u043b\u0438\u0441\u0442\u0430 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435. \u0418 Excel \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438. \u0422\u0430\u043a \u0447\u0442\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u0437\u0443\u0447\u0430\u0442\u044c R, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043d\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u043b \u043f\u043e\u043b\u0434\u043d\u044f. \u0423\u0436\u0435 \u0432 \u0445\u043e\u0434\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u043e\u043c\u0443, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043b\u0438\u0440\u0438\u043a\u0430.<\/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-291687","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291687","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=291687"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291687\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=291687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=291687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=291687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}