Trying to Change the Formatting of a Graph in R using ggplot2

I want to modify this output graph so that each Wall and Restored bar is next to each other for each site. The wall and restored are the site types:
This is the graph that I would like it to resemble in terms of formatting the bar placements:

Here is my code:

ggplot(sed_avg_long, aes(x = Site, y = Avg_Percentage, fill = Sediment_Type))+
geom_bar(stat = "identity") +
facet_grid(~Site_Type, scales = "fixed") +
labs(x = "Site", y = "Average Percent Sediment", fill = "Sediment type") +
theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
scale_fill_brewer(palette="Set1")

Please Help!

This is the graph output for that code:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.