Thank you. g <- ggplot(avg_df, aes(x = mean, fill=variable))+ geom_density(position = "fill") + guides(fill = guide_legend(title = "SC-2 variants")) + scale_fill_manual(values=colors) + facet_grid(~State, scales='free_x')
I am unable to plot it with Date as the x axis. I need the date as the x axis with the abundance as the y axis.

some plotting data
g <- ggplot(subset(avg_df, State %in% c("State_name")), aes(x = Date, y = mean))+ geom_area(aes(fill = variable)) + guides(fill = guide_legend(title = "SC-2 variants")) + scale_fill_manual(values=met.brewer("Demuth")) + facet_grid(~State, scales='free_x') + theme(panel.spacing = unit(.5, "lines"), panel.border = element_rect(color = "black", fill = NA, size = 2), strip.background = element_rect(color = "black", size = 1.5))