I have several criteria from which I want to create a stacked barchart.
My criteria are: work week, quantity, customer, Tag (Received, Shipped)
This (facet_grid(~Tag)) looks ok but is not really what I need.
ggplot(allRecords, aes(x = reorder(WW,Date), y = Quantity, fill =
Customer)) +
geom_bar(stat = "identity", position = "fill", colour = "black") +
facet_grid(~Tag) +
labs(x = "Work Week") +
ggtitle("Goods last 3 months by core customers") +
theme_bw()
I need a stacked chart for "received" and "shipped" for each work week by customer.