-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ggpie changes the default order of label #203
Comments
Sorry, according to #166 not 116, it is also not work. |
Thank you for pointing this issue. This is fixed by adding the pilabels into the data frame as follow: freq <- data.frame(
GENE = c("EGFR", "KRAS", "NTRK", "ALK", "RET", "BRAF", "ERBB2", "MET", "ROS1"),
FREQUENCY = c(0.46, 0.26666667, 0.08, 0.04666667, 0.04666667, 0.0333333, 0.0333333, 0.0333333, 0.0133333)
)
freq$pielabels <- paste(freq$GENE, paste(round(freq$FREQUENCY * 100, 2), "%", sep = ""), sep = "\n")
ggpie(
freq, "FREQUENCY", label = "pielabels", lab.pos = "out",
lab.font = "white", fill = "GENE", color = "white", palette = "jco"
) In the current version of |
fixed now, thanks! You can install the latest dev version and try it: |
Thanks for your solution very much. I get it and thank you again ! |
Hello, @kassambara
When I use ggpie to plot a pie, I find the label is wrong. The following is my data:
And my code:
The text was updated successfully, but these errors were encountered: