Learn R Programming

SciViews (version 0.8-8)

report: Send a View to the report

Description

Given a SciViews-compatible reporting application (like SciViews R report) is parameterized as the default application to use, this function generates and append a View to its current report.

Usage

report(x, objname = deparse(substitute(x)), reptype = "html", application = getOption("reporter"), ...)
    reportGraph(device = dev.cur(), application = getOption("reporter"), multiformat = FALSE, dir = file.path(tempdir(), "svGraph"), width = 480, height = 480, pointsize = 12, bg = "transparent", ...)

Arguments

x
An object
objname
A name for this object (its own name, by default)
reptype
The type of report. By default, it is "html" format
device
The device where the graph should be appended to the report
application
The reporter application
multiformat
Do we use multiple formats (PNG + PDF, currently), or not (PNG only, default value)
dir
The directory where to place resulting files
width
The width of the generated image, in pixels
height
The height of the generated image, in pixels
pointsize
The pointsize (font size) to use
bg
The color of the background (transparent, by default)
...
Further argument to use to generate the View or the graph

Value

  • Returns invisibly TRUE for report() and the path to the created PNG file for reportGraph.

Details

ReportGraph() prepares graph outputs, so that they are suitable to be incorporated in a report. For an HTML report, it is a PNG image (plus a PDF one, if multiformat = TRUE).

See Also

view

Examples

Run this code
data(iris)
        report(iris)

Run the code above in your browser using DataLab