Reputation: 1
For my master thesis I would need to do a map (possibly with ggplot) with pie charts on it, I've read many threads about the library scatterpie but it doesn't work with my data. My data are something like this:
Long | Lat | Abundance | Names |
---|---|---|---|
X | Y | 3 | Jhonny |
X | Y | 1 | Manuel |
X | Y | 2 | Mike |
Scatterpie function doesn't work because it asks that "the slices" of the pie are different columns of the data frame. Instead, I would need a pie in which the slices are each name of the Names column and the width of the slice that corresponds to the Abundance variable.
Is there a function that does this?
Upvotes: 0
Views: 30