Description Usage Arguments Details
Save a plot and upload it to a project on OSF (osf.io)
1 2 | save_and_upload(p, filename, width = 800, height = 800, type = "png",
osf_id, osf_folder = "plots", ...)
|
p |
specification (lattice object, ggplot2 object, or expression of arbitrary R code) |
filename |
where to save the file |
width |
(in pixels) |
height |
(in pixels) |
type |
type of file ("png" or "pdf") |
osf_id |
id of the project on OSF (osf.io/xxxx) |
osf_folder |
folder within the project to save the file (file will have same base name as |
... |
additional parameters passed to graphics device |
All GHAP repositories are automatically organized and stored in a directory structure under a base git path which is specified by this function. This function will set an R environment variable that will be present in all subsequent sessions such that you only need to specify the base path once.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.