plot_pieplot {daltoolbox} | R Documentation |
plot pie
Description
plot pie
Usage
plot_pieplot(
data,
label_x = "",
label_y = "",
colors = NULL,
textcolor = "white",
bordercolor = "black"
)
Arguments
data |
data.frame contain x, value, and variable |
label_x |
x-axis label |
label_y |
y-axis label |
colors |
color vector |
textcolor |
text color |
bordercolor |
border color |
Value
ggplot graphic
Examples
#summarizing iris dataset
data <- iris |> dplyr::group_by(Species) |>
dplyr::summarize(Sepal.Length=mean(Sepal.Length))
head(data)
#ploting data
grf <- plot_pieplot(data, colors=c("red", "green", "blue"))
plot(grf)
[Package daltoolbox version 1.0.767 Index]