plot_mrg | R Documentation |
Membuat marginal plot untuk menunjukkan distribusi variabel dalam scatter plot
plot_mrg(
data,
x,
y,
title,
subtitle,
data_source,
mg_type = c("histogram", "boxplot", "density")
)
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 |
mg_type |
type of marginal plot |
ggplot ggarrange object
## Not run:
library(dataplot)
library(ggplot2)
p1 <- plot_mrg(
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",
mg_type = "histogram"
)
p1
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.