kedata_final1 | R Documentation |
Pertama, membuat judul dan subjudul plot rata dengan tulisan di garis X. kedua, membuat logo kedata ada di pojok kanan atas plot yang dibuat.
kedata_final1(plotname, title, subtitle)
plotname |
Sebuah objek yang dibuat dengan menggunakan fungsi ggplot |
title |
Sebuah kalimat berupa karakter untuk judul |
subtitle |
Sebuah kaliamt berupa karakter untuk subjudul |
Objek ggplot
## Not run:
library(ggplot2)
# Create usual ggplot object
p1 <- ggplot(data = economics, aes(x = pce, y = pop)) +
geom_line() +
kedata_theme()
# Drawing left aligned title
p1 <- kedata_final1(
plotname = p1,
title = "Lorem Ipsum is simply dummy text",
subtitle = "Contrary to popular belief, Lorem Ipsum is not simply random text"
)
p1
# Saving plot result
ggsave(filename = "tes.png", dpi = 300, height = 6, width = 9)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.