
Last chance! 50% off unlimited learning
Sale ends in
Export any ggplot2
, gridExtra
, or any plot object
created with R into rendered png
or jpg
file.
export_plot(
p,
name = "plot",
vars = NA,
sep = ".vs.",
width = 8,
height = 6,
format = "png",
res = 300,
dir = getwd(),
subdir = NA,
quiet = FALSE
)
Plot object. Plot to render and export.
Character. File's name or suffix if vars is not NA
. No need
to include file format on file name.
Vector. Variable names to identify by filename.
Character. Separator for vars
.
Numeric. Plot's width, height, and res (for grids).
Character. One of: png
or jpeg
.
Character. In which directory/subdirectory do you
wish to save the plot? Working directory as default dir
.
Boolean. Display successful message with filename when saved?
No return value, called for side effects.
Other Tools:
autoline()
,
bindfiles()
,
bring_api()
,
db_download()
,
db_upload()
,
export_results()
,
get_credentials()
,
h2o_predict_API()
,
h2o_predict_MOJO()
,
h2o_predict_binary()
,
h2o_predict_model()
,
h2o_selectmodel()
,
haveInternet()
,
image_metadata()
,
importxlsx()
,
ip_data()
,
json2vector()
,
listfiles()
,
mailSend()
,
msplit()
,
myip()
,
quiet()
,
read.file()
,
statusbar()
,
tic()
,
try_require()
,
updateLares()
,
zerovar()
# NOT RUN {
p <- noPlot()
export_plot(p, name = "noplot", width = 10, height = 8, res = 300, dir = tempdir())
export_plot(p, name = "noplot2", subdir = "newplots", dir = tempdir())
# }
Run the code above in your browser using DataLab