Skip to content

Commit

Permalink
Update func_pie_charts.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Jenkins committed Apr 9, 2024
1 parent c9b70a8 commit 868a0b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/func_pie_charts.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ build_pie_chart <- function(df, location, cols = NULL, border = 0.3, opacity = 1
x = ggplot2::unit(0.5, "npc"),
y = ggplot2::unit(0.5, "npc"),
r = ggplot2::unit(0.35, "npc"),
gp = grid::gpar(col = "black", fill = cluster_col)
gp = grid::gpar(col = "black", fill = cluster_col, alpha = opacity, lwd = border)
)

# Plot
plt <- ggplot2::ggplot() +
ggplot2::geom_point(ggplot2::aes(x = NA, y = NA))+
ggplot2::geom_point(ggplot2::aes(x = NA, y = NA), colour = "transparent")+
ggplot2::annotation_custom(grob = circle)+
ggplot2::theme_void()
return(plt)
Expand Down

0 comments on commit 868a0b1

Please sign in to comment.