facet_wrap problem

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 :slight_smile:

What does your dataset look like? Can you provide a reproducible example?

1 Like

Hi @williaml I am so sorry for your time. I found the issue. I took my data from excel and excel did not filter out YAG types, my lead researcher told me there should be no such thing like that. But unfortunately excel can't make a filter on lower-upper case letters. Again thank you so much. Thanks for your time. :slight_smile:

1 Like

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.