createReportGgPlot {RnBeads} | R Documentation

## createReportGgPlot

### Description

creates a report plot containing a `ggplot object`. Except for the `ggp` parameter, the signature and behavior is identical to `createReportPlot`.

### Usage

    createReportGgPlot(ggp, fname, report = NULL, width = 7, height = 7,
      create.pdf = TRUE, low.png = as.integer(100), high.png = as.integer(0))

### Arguments

`ggp` | `ggplot` object to be plotted
`fname` | `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` | Report (object of type `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.
`width` | `numeric` storing the width of the device in inches. The length of this vector must be `1`.
`height` | `numeric` storing the height of the device in inches. The length of this vector must be `1`.
`create.pdf` | Flag indicating if a PDF image is to be created. The length of this vector must be `1`.
`low.png` | Resolution, in dots per inch, used for the figure image. Set this to `0` or a negative value to disable the creation of a low resolution image. The length of this vector must be `1`.
`high.png` | Resolution, in dots per inch, used for a dedicated image. Set this to `0` or a negative value to disable the creation of a high resolution image. The length of this vector must be `1`.

### Value

Newly created `ReportGgPlot` object.

### Author(s)

Fabian Mueller

[Package RnBeads version 1.12.1 Index]