vertesy / ggExpress

ggExpress is the fastest way to create, annotate and and save plots in R.
https://vertesy.github.io/ggExpress
GNU General Public License v3.0
5 stars 2 forks source link

qqpie often has too small canvas size - increasing it could be an intrinsic feature #11

Closed vertesy closed 2 years ago

vertesy commented 3 years ago
df <- data.frame(
  group = c("Male", "Female", "Children but not teenager"),
  value = c(25, 25, 50))

ggpie(df, "value", label = "group")

Fixing margin does not help

ggobj +
    theme(plot.margin = unit(c(1,1,1,1), "cm"))
vertesy commented 3 years ago

Asked author here

vertesy commented 2 years ago

Can be solved by + coord_polar(theta = "y", clip = "off") as explained in this SO post.