Answers for "ggplot manually change bar spacing"

0

ggplot manually change bar spacing

> df$time <- c(rep("0h", 4), rep("1h", 4), rep("4h", 4), rep("8h", 4))
> ggplot(df, aes(x = time, y = mean_count, fill = cond)) + geom_bar(stat = "identity", position = position_dodge())
Posted by: Guest on June-22-2021

Browse Popular Code Answers by Language