ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

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

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Barplot with errorbars Using summary_stat() function in ggplot2 and R programming

R programming

Data visulisation

statistics

Автор: Rajendra Choure

Загружено: 2023-05-16

Просмотров: 898

Описание: #barplot #datavisualization #datascience #rprogramming #ggplot2 #datavisualization #summarystat

In this video i have demonstrated use of summaey_stat() function with ggoplot() to get barplots with errorbars. I have demonstrated grouped barplot with errorbars also.

with this approach explicit computation of summar statstics like mean and sd using group_by() and summarize() functions is not required. A lot of time is saved.
#code
head(iris)
summary(iris)

library(ggplot2)


ggplot(iris,aes(Species,Sepal.Length))+
stat_summary(fun="mean", geom="col")+
stat_summary(fun.data="mean_se",geom="errorbar", width=0.2, size=1)+
theme_classic()

library(tidyr)

iris_long = pivot_longer(iris,cols=1:4, values_to = "Length",names_to = "Measurement")


ggplot(iris_long,aes(Species,Length,fill=Measurement))+
stat_summary(fun="mean", geom="col", position = "dodge")+
stat_summary(fun.data="mean_se",geom="errorbar", width=0.2, size=1, position = position_dodge(width=0.9))+
theme_classic()

Facebook page:
  / rajendrachoureisc  

Mail Id:
[email protected]

youtube playlist:
   • R programming tutorials  

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Barplot with errorbars Using summary_stat() function in ggplot2 and R programming

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]