Тёмный

Jitter & Position Dodge Simultaneously in ggplot2 Plot in R (Example) | Apply position_jitterdodge() 

Statistics Globe
Подписаться 30 тыс.
Просмотров 862
50% 1

Опубликовано:

 

13 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@briandinh8597
@briandinh8597 7 месяцев назад
Very clear and efficient video. Saved me an hour of work, thanks mate.
@StatisticsGlobe
@StatisticsGlobe 7 месяцев назад
Great to hear, Brian! Glad it helped.
@michaelziegler6400
@michaelziegler6400 Год назад
Fantastic tutorial, the code worked well, thank you! I was wondering two things: 1. Is there a way to keep this separation and have the points in an aligned straight vertical line/axis instead of staggered cluster? 2. My data looks very similar to your example, but I do not have a subgroup c, only in group A, making the position of points offset for the following groups that do have all subgroups represented. Is there a way do adjust this positioning if there are no values represented in some group's subgroups?
@cansustatisticsglobe
@cansustatisticsglobe Год назад
Hello Michael, If I got you well, this script can be used to implement what you want. library(ggplot2) # libraries library(dplyr) set.seed(123) # Example data df
@michaelziegler6400
@michaelziegler6400 Год назад
Thank you for the fast reply! Let me attempt to run this with my data and I will let you know (: @@cansustatisticsglobe
@cansustatisticsglobe
@cansustatisticsglobe Год назад
Welcome! @@michaelziegler6400
@santosh6148
@santosh6148 Год назад
Nice
@matthias.statisticsglobe
@matthias.statisticsglobe Год назад
Thank you Santosh!
Далее