plot_sctr2: Scatter plot 2 variables in kedata style

View source: R/plot_sctr2.R

plot_sctr2R Documentation

Scatter plot 2 variables in kedata style

Description

Membuat scater dengan dua variabel dalam gaya kedata

Usage

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

Arguments

data

data frame

x

character of column name for x axis

y

character of column name for y axis

title

character for plot title

subtitle

character for plot subtitle

data_source

character for footer text

Value

ggdraw object

Examples

## Not run: 
library(dataplot)
library(ggplot2)

plot_sctr2(
  data = economics, x = "psavert", y = "uempmed",
  title = "Lorem Ipsum is simply dummy text",
  subtitle = "Contrary to popular belief, Lorem Ipsum is not simply random text",
  data_source = "www.kedata.online"
)

ggsave(filename = "tes.png", dpi = 300, height = 6, width = 9)

## End(Not run)


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