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 "=".

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to