Is there a way to plot variable that can take multiple levels at once with ggplot

Viewed 22

I have a data set of events I went to where one variable/column is the person that went with me. Sometimes it is one person, sometimes a group of multiple people. I'm having trouble plotting this with ggplot. I've tried formatting the data but either, the list of people is just displayed as one cohesive list without the individual people in it or just the first person in the group is shown.

Is it possible to somehow format data in a way that one variable can take multiple levels at once? Or some package in ggplot that allows that?

Thanks a lot :)

0 Answers
Related