R/png.ggsave.R

# library(ggplot2)
# 
# ggplot_alternative <- function()
# {
#   the_data <- data.frame(
#     x <- seq(0, 1, length.out = 100),
#     y = pbeta(x, 1, 10)
#   )
#   
#   ggplot(the_data, aes(x, y)) +
#     geom_line() +
#     xlab("False Positive Rate") +
#     ylab("Average true positive rate") +
#     coord_cartesian(0:1, 0:1)
# }
# 
# ggsave(
#   "ggtest.png",
#   ggplot_alternative(),
#   width = 3.25,
#   height = 3.25,
#   dpi = 1200
# )



#-----------------------------

# Make a 6x6 inch image at 300dpi
#ppi <- 300
#png("plot.png", width=6*ppi, height=6*ppi, res=ppi)
#plot(...)
#dev.off()
azabeo/lumi02 documentation built on May 11, 2019, 5:16 p.m.