2/9/2023 0 Comments How to add footnote citations![]() ![]() This appropriately puts the footnote in the lower left corner on the x11() display, external to the plots, but unfortunately, since it isn't applied to the p1 object, it isn't saved by the ggsave command. Grid.gedit("GRID.text", gp=gpar(fontsize=7)) I've tried: p1 <- ggplot(data, aes(date, value)) Ggsave("FILE.png",width=mywidth, height=myheight, p1, dpi=90) Here's my basic code: p1 <- ggplot(data, aes(date, value))įacet_grid(variable ~. dev.off() does not appear to be an option because I need ggsave's resizing parameters, and find this command produces better, clearer prints (that are also much faster, because I'm not printing to the screen). This means I can't use grid.text()-based solutions, because that only draws on the x11() window, and can't be added to the ggplot object. I'd ideally like to have it below and external to all three axes-preferably in the lower left. It's a footnote to credit the data source. I'd like to add a footnote citation to my 3-panel facet grid plot produced in R. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |