You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ggpubr::ggdonutchart(data = data_2022ago, x = "number", color = "white",
fill = "country",lab.pos = "out",
orientation = "horizontal",
lab.font = c(12, "bold", "blue"))
PROBLEM: It does not give me the right font in terms of colour and size
The text was updated successfully, but these errors were encountered:
country <- c( "salvador", "honduras", "guatemala")
data_2022ago <- data.frame(
number = c(10399, 66763,68663),
country = factor(country, levels = country),
y = seq(length(country)) * 0.9
)%>%
dplyr::mutate(total = sum(number))%>%
mutate(prop = number/total)%>%
dplyr::mutate(percent = paste0(round(prop*100), "%"))%>%
mutate(label = paste(percent, "\n","(", scales::comma (number), ")", sep = ""))
CHART
ggpubr::ggdonutchart(data = data_2022ago, x = "number", color = "white",
fill = "country",lab.pos = "out",
orientation = "horizontal",
lab.font = c(12, "bold", "blue"))
PROBLEM: It does not give me the right font in terms of colour and size
The text was updated successfully, but these errors were encountered: