An R package to create scatter-pie plot based on the ggplot2 and ggforce package.
Questions tagged [scatterpie]
39 questions
3
votes
1 answer
Combining a ggdend tree with a geom_scatterpie
I have a phylogenetic tree:
my.tree <- ape::read.tree(text = "((rat:0.06290316531,mouse:0.06094803666):0.05175420892,human:0.09883650566);")
which I then convert to a ggdend object:
library(dplyr)
my.dend <- phylogram::as.dendrogram.phylo(my.tree)…

dan
- 6,048
- 10
- 57
- 125
3
votes
1 answer
Making a scatter plot of multiple pie charts of differing sizes, using ggplot2 in R
I have a data frame containing the following data:
> data_graph
# A tibble: 12 x 4
# Groups: ATTPRO, ATTMAR [?]
x y group nb
1 0 0 1 1060
2 0 0 2 361
3 0 0 3 267
…

MarieT
- 57
- 2
- 9
2
votes
1 answer
Plot piecharts onto map using tmap in R
I would like to plot pie-charts onto a map in R using tmap. I have found how to plot piecharts onto a map using ggplot2 but I would like to use tmap for basemap layers as I have already created all my other maps using the latter package and I find…

user3386170
- 276
- 4
- 22
2
votes
0 answers
can not mapping discrete and continuous value to a map in r
As the title says.
When I mapping a continuous value to a map it works well.
When I mapping a discrete value to a map it works also well.
But when I combine the two layers an error occur:
Error: Discrete value supplied to continuous…

zhiwei li
- 1,635
- 8
- 26
2
votes
1 answer
Prevent overlapping pie charts on a GADM ggplot map using geom_scatterpie
I am attempting to recreate this graphic:
Proportion of male snails in New Zealand lakes
This image shows an outline of New Zealand, with the pie charts distributed outside of the outline, and connected to lake coordinates with a line. So far, I…

ZDinges
- 53
- 5
2
votes
0 answers
Adding scatterpie to a dendextend::ggdend phylogenetic tree
I'm trying to plot a phylogenetic tree (in the form of a dendextend::ggdend object) along with scatterpie representing ancestral states in the internal nodes of the tree.
Here is the phylogenetic species tree:
species.tree <-…

dan
- 6,048
- 10
- 57
- 125
2
votes
1 answer
Pie charts in geom_scatterpie overlapping
I would like to find a way to keep pie charts in scatterpie from overlapping with one another. I know that I can further reduce the radius, but don't want to make them any smaller than they already are. Position=jitter does not work well at all.…

Carrie Perkins
- 139
- 9
2
votes
2 answers
multiple pies with scatterpie or ggforce
I am trying to plot multiple piecharts on top of an image. I want to use custom_annotation to plot the rastered image. But right now I can't even get the multiple piecharts.
Ultimately I want 6 pies plotting in differnet spots over top of an image.…

user2814482
- 631
- 1
- 10
- 28
1
vote
1 answer
Scatterpie plot with patterns
I'm using the R scatterpie package for plotting pie charts on an xy plane. Each one of the pies/groups also has a class assignment which I would also like to convey in the plot and was thinking of using patterns for that.
Here's the example…

user1701545
- 5,706
- 14
- 49
- 80
1
vote
1 answer
In R use plot_usmap with color and geom_scatterpie together
I want to make a map that has color for each state represent an variable. At same time, I want to add a pie chart for each state while keep the color in the last step.
So far, I can make the colored map with plot_usmap
and pie chart on map use…

Sam
- 11
- 1
1
vote
1 answer
labeller argument in geom_scatterpie_legend() doesn’t produce expected results
I am creating a world map with pie charts depicting sampling conducted.
I am having trouble getting the labeller option within geom_scatterpie_legend() - it appears to be producing non-sensical labels. The radius of my pies is set by…

Pat Taggart
- 321
- 1
- 9
1
vote
1 answer
ggplot how to plot pie charts on USA map with state's id
I would like to plot pie charts of different fuel type for each state on USA map.
my data includes fuel types and their amount and each state id. I want to know how to plot pie on map for each state with state id?
Thanks,
data <- data.frame(region=…

Arwen
- 77
- 4
1
vote
0 answers
Creating maps with pie charts from genetic data
I am doing a population genetics study and working with chloroplast data from an oak species. I have performed a DAPC and found that there are 5 clusters of chloroplast genotypes. I want to make a map that shows the ratios of each of these based on…

Christopher McCarron
- 11
- 1
1
vote
1 answer
Scatter Pie Plot Python Pandas
"Scatter Pie Plot" ( a scatter plot using pie charts instead of dots). I require this as I have to represent 3 dimensions of data.
1: x axis (0-6)
2: y axis (0-6)
3: Category lets say (A,B,C - H)
If two x and y values are the same I want a pie chart…

pandasman
- 90
- 18
1
vote
0 answers
How to avoid overlap in geom_scatterpie() function
I have seen the answer Pie charts in geom_scatterpie overlapping.
But I do not want to reset the overlapped pie chart coordinate manually.
Is there some function in ggplot2 or something else can avoid overlap in geom_scatterpie() function?
Any help…

zhiwei li
- 1,635
- 8
- 26