This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pacman::p_load(tidyverse) | |
gg_to_clipboard <- function(plot = last_plot(), width = 1000, height = 600, pointsize = 40){ | |
win.graph(width = width, height = height, pointsize = pointsize) | |
plot %>% print() | |
savePlot("clipboard", type = "wmf") | |
dev.off() | |
} | |
# ggplot(data = mtcars, aes(x = mpg)) + geom_histogram() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
codegen | |
~~~~~~~ | |
Extension to ast that allow ast -> python code generation. | |
:copyright: Copyright 2008 by Armin Ronacher. | |
:license: BSD. | |
""" |