View source: R/plot_lollipop.R
plot_lollipop | R Documentation |
Lollipop chart in kedata style
plot_lollipop(data, x, y, title, subtitle, data_source)
data |
data frame |
x |
column name |
y |
column name |
title |
character |
subtitle |
character |
data_source |
character |
ggplot objek
## Not run:
library(dataplot)
library(ggplot2)
df <- data.frame(
"brand" = c("Samsung", "Huawei", "Apple", "Xiaomi", "OPPO"),
"share" = c(10, 30, 20, 35, 5)
)
plot_lollipop(data = df, x = "brand", y = "share",
title = "Lorem Ipsum is simply dummy text",
subtitle = "Contrary to popular belief, Lorem Ipsum is not simply random text",
data_source = "www.kedata.online"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.