Commit b70ba816 authored by Holger Brandl's avatar Holger Brandl

disambiguate last_plot by prefix

parent ba22c9ff
......@@ -68,7 +68,7 @@ gg2Format="png"
## simplified save function for ggpltos
ggsave2 <- function(gplot=last_plot(), width=8, height=6, prefix="", saveData=FALSE, outputFormat=gg2Format, ...){
ggsave2 <- function(gplot=ggplot2::last_plot(), width=8, height=6, prefix="", saveData=FALSE, outputFormat=gg2Format, ...){
title <- try(gplot$labels[["title"]])
if(is.null(title)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment