Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/ReportPlot-methods.R
Initializes a report plot and opens a device to create it. The type of the device created depends on the
parameters 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
1 2 3 4 5 6 7 8 9 | createReportPlot(
fname,
report = NULL,
width = 7,
height = 7,
create.pdf = TRUE,
low.png = 100L,
high.png = 0L
)
|
fname |
|
report |
Report (object of type |
width |
|
height |
|
create.pdf |
Flag indicating if a PDF image is to be created. The length of this vector must be |
low.png |
Resolution, in dots per inch, used for the figure image. Set this to |
high.png |
Resolution, in dots per inch, used for a dedicated image. Set this to |
In order to ensure independence of the operating system, there are strong restrictions on the name of the file. It
can consist of the following symbols only: Latin letters, digits, dot (.
), dash (-
) and underline
(_
). The name must not include paths, that is, slash (/
) or backslash (\
) cannot be used.
Newly created ReportPlot
object.
Yassen Assenov
pdf
for manually initializing a graphics device; Report
for other
functions adding contents to an HTML report
1 2 3 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.