6
Ekli kutulardan nasıl kaçınırım? Eğerggplot boxplots arasındaki mesafe artışı
ggplot(df, aes(x=factor(time), y=val, fill=ID))+
geom_boxplot()+
scale_fill_manual(values=c(WT="goldenrod3", KO="steelblue"))
Ekli kutulardan nasıl kaçınırım? Eğerggplot boxplots arasındaki mesafe artışı
ggplot(df, aes(x=factor(time), y=val, fill=ID))+
geom_boxplot()+
scale_fill_manual(values=c(WT="goldenrod3", KO="steelblue"))
Bak position_dodge
de, width
argüman aralığı ile yardımcı olabilir ederiz
mtcars$sep <- 1:2 # a factor
ggplot(mtcars, aes(x=factor(carb), y=mpg, fill=factor(sep))) +
geom_boxplot(position=position_dodge(width=0.8))