Generation

generate functionTue, 18 Apr 2023

library(ggplot2) avfourfods <- ggplot(meanFODs_indvar_FODs, aes(x = Condition_FODs, y = mean, fill = Condition_FODs)) + geom_bar(stat = "identity", position = "dodge") + geom_errorbar(aes(ymin = mean - sd/sqrt(count), ymax = mean + sd/sqrt(count)), width = 0.2, position = position_dodge(width = 0.9)) + xlab("Condition") + ylab("Mean of FODs") + ggtitle("Average of first order differences (FODs): Four conditions") + theme_minimal() + theme(panel.border = element_rect(color = "black", fill = NA, size = 1)) + labs(fill = "Conditions") + geom_hline(yintercept = 0, color = "black", linetype = "solid", size = 2) how can I get the colour codes (e.g., #....... )of used exactly in this plot?

avfourfods + geom_hline(yintercept = 0, color = '#000000', linetype = 'solid', size = 2) + scale_fill_manual(values = c('#82c4fa','#fda02a','#00d2ff','#ff0033'))

Questions about programming?Chat with your personal AI assistant