save_and_upload: Save a plot and upload it to a project on OSF (osf.io)

Description Usage Arguments Details

Description

Save a plot and upload it to a project on OSF (osf.io)

Usage

1
2
save_and_upload(p, filename, width = 800, height = 800, type = "png",
  osf_id, osf_folder = "plots", ...)

Arguments

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 filename)

...

additional parameters passed to graphics device

Details

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.


HBGDki/ghap documentation built on May 6, 2019, 9:45 p.m.