flow.com/questions/18229835/how-do-i-manually-set-geom-bar-fill-color-in-ggplot
hist + geom_col(width=0.4, position = position_dodge(width=0.5))+
scale_fill_manual(values=rep(c("red", "blue"), each=3))
Cheers
Petr
From: azam jaafari
Sent: Wednesday, December 16, 2020 10:57
2020 9:16 PM
> To: r-help@r-project.org
> Subject: [R] space between bars of a group in ggplot2
>
> Hello Dear
> I want to make a barplot for groups with three repetitions and same values.
> dataset is like this:
>
> groups: a b
Hello Dear
I want to make a barplot for groups with three repetitions and same values.
dataset is like this:
groups: a b
c
value: 1.2, 1.2, 1.2 2.5, 2.5,2.5
Condition: sat, sat, sat,
3 matches
Mail list logo