Hello all,
I have a problem with facet_wrap. Actually, it doesn't give an error but it gives the graph that I don't use in data.
here is my code
plot4<-ggplot(
total_by_type,
aes(
x = DATE,
y = Hours
)
) +
geom_col() +
facet_wrap(~TYPE) +
scale_x_date(breaks = date_breaks("month"), labels = date_format("%m"))
plot4
In data, I have types of fruits and the one type is YaG. The plot gives me YaG and YAG but I am %100 sure I have no such thing as YAG in my data.
I hope you can help me