[R] Graphs for scientific publication ?

Jeremy Clark jeremyclarkbio at gmail.com
Wed Jun 3 12:30:34 CEST 2015


The coding I've settled on to save file without clipping is:

library(gridExtra)
gt <- ggplot_gtable(ggplot_build(q3))
gt$layout$clip[gt$layout$name=="panel"] <- "off"
gt4 <- arrangeGrob(gt)
ggsave <- ggplot2::ggsave; body(ggsave) <- body(ggplot2::ggsave)[-2]
## from Baptiste
ggsave("gt.pdf", plot = gt4, width = 6, height = 6)
ggsave("gt.png", plot = gt4, width = 6, height = 6)

Part of the problem with plotmath is that as soon as paste is used the
syntax needed is different eg. substitute and substitute(paste( do not
accept the same syntax eg. == or "=".



More information about the R-help mailing list