plot_lollipop | R Documentation |
plot lollipop
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
)
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 |
ggplot graphic
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.