Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб R Script: Using ggplot to make a pie chart of continent areas в хорошем качестве

R Script: Using ggplot to make a pie chart of continent areas 1 год назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



R Script: Using ggplot to make a pie chart of continent areas

In this video we use the ggplot2 library to make a pie chart of the areas of the continents (Asia, Africa, etc.). We read a csv to create a data frame. We added columns to the data frame and sorted the data frame on one of its columns. We used the ggplot() and geom_bar() to make a stacked bar chart. We used the labs() method to add a title and the guides() method to change the legend title. We used the geom_text() method to label the sections with percentages. We used the scale_fill_manual() method to control the section colors. We took out the grid with the theme_void() method. Finally we used the coord_polar() method to turn the stacked bar plot into a pie chart.

Comments