plot_lollipop: Lollipop chart in kedata style

View source: R/plot_lollipop.R

plot_lollipopR Documentation

Lollipop chart in kedata style

Description

Lollipop chart in kedata style

Usage

plot_lollipop(data, x, y, title, subtitle, data_source)

Arguments

data

data frame

x

column name

y

column name

title

character

subtitle

character

data_source

character

Value

ggplot objek

Examples

## 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)

eppofahmi/dataplot documentation built on Jan. 22, 2025, 1:14 a.m.