library(ggplot2)
a <- ggplot(iris) +
geom_point(aes(x = Sepal.Length, y = Sepal.Width))
png('abc.png')
b <- tern::decorate_grob(
ggplotGrob(a),
"this is title that is very long dasd asdas dasljdklasjdklasjlk dakldsj akldjakls jkald jaklsj dklsajklaj skldajkl jsakldjal jsadlk dasj lasjdlkasjkl ajskld asl jalksjd lkasjlk alkj dlkadlka sjd lakjsdl a",
"this is footnotes that is super super supre long long asdad as dasd ad ada ad asdadkhasdalksjdlkaj kdlajskl dsajlkd ajldja lkdjas jdklas jdkasj dlasl;jd klasjdkl aldja lkjdlkaj lkfjalksd a",
)
grid::grid.draw(b)
dev.off()
Code of Conduct
[X] I agree to follow this project's Code of Conduct.
Contribution Guidelines
[X] I agree to follow this project's Contribution Guidelines.
Security Policy
[X] I agree to follow this project's Security Policy.
What happened?
decorate_grob title/footnote do not wrap correctly. title the wrapped is too long while footnote is too short
sessionInfo()
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy