create.pdf
, low.png
and high.png
. If create.pdf
is TRUE
, a PDF device
is opened and its contents are later copied to PNG device(s) if needed. Otherwise, a PNG device is opened. Note that
at least one of the following conditions must be met:
create.pdf == TRUE
low.png > 0
high.png > 0
createReportPlot(fname, report = NULL, width = 7, height = 7, create.pdf = TRUE, low.png = 100L, high.png = 0L)
character
vector with one element storing the name of the output file, without the
extension. The initialized object appends .pdf
and/or .png
to this name.Report
) to which this plot is going to be added. This
is used to set the directories for PDF and/or PNG files generated for these plots. If this
parameter is NULL
, the current working directory is used to host all generated images.numeric
storing the width of the device in inches. The length of this vector must be
1
.numeric
storing the height of the device in inches. The length of this vector must be
1
.1
.0
or a negative value
to disable the creation of a low resolution image. The length of this vector must be 1
.0
or a negative value
to disable the creation of a high resolution image. The length of this vector must be 1
.ReportPlot
object.
.
), dash (-
) and underline
(_
). The name must not include paths, that is, slash (/
) or backslash (\
) cannot be used.
pdf
for manually initializing a graphics device; Report
for other
functions adding contents to an HTML report
plot.image <- createReportPlot('scatterplot_tumors')
plot(x = c(0.4, 1), y = c(9, 3), type = 'p', main = NA, xlab = expression(beta), ylab = 'Measure')
off(plot.image)
Run the code above in your browser using DataLab