| dput.ggedit {ggedit} | R Documentation |
Convert ggplot object to a string call
dput.ggedit(obj, file = "")
obj |
compiled ggplot object |
file |
either a character string naming a file or a connection. " " indicates output to the console, Default: " " |
character
pList$pointSmooth #original compiled plot this.gg <- dput.ggedit(pList$pointSmooth) #dput the plot writeLines(this.gg) #show the output eval(parse(text=this.gg)) #recompile the plot #add theme change p <- pList$pointSmooth+theme(panel.background = element_rect(fill='green')) this.gg<-dput.ggedit(p) #dput the plot writeLines(this.gg) #show the output eval(parse(text=this.gg)) #recompile the plot