plot_lollipop {daltoolbox} | R Documentation |
plot lollipop
Description
plot lollipop
Usage
plot_lollipop(
data,
label_x = "",
label_y = "",
colors = NULL,
color_text = "black",
size_text = 3,
size_ball = 8,
alpha_ball = 0.2,
min_value = 0,
max_value_gap = 1
)
Arguments
data |
data.frame contain x, value, and variable |
label_x |
x-axis label |
label_y |
y-axis label |
colors |
color vector |
color_text |
color of text inside ball |
size_text |
size of text inside ball |
size_ball |
size of ball |
alpha_ball |
transparency of ball |
min_value |
minimum value |
max_value_gap |
maximum value gap |
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_lollipop(data, colors="blue", max_value_gap=0.2)
plot(grf)
[Package daltoolbox version 1.0.767 Index]