Save a plot to pdf file

savePlot(name_base, file_name, width, height)

Arguments

name_base

path to a folder (or "" for working directory)

file_name

name of a file to save. If this file already exists, an integer will be appended to this name

width

width of a plot

height

height of a plot