Learn R Programming

DPI (version 2025.11)

S3method.dpi: [S3 methods] for DPI() and DPI_curve().

Description

summary(dpi)

Summarize DPI results. Return a list (class summary.dpi) of summarized results and raw DPI data.frame.

print(summary.dpi)

Print DPI summary.

plot(dpi)

Plot DPI results. Return a ggplot object.

print(dpi)

Print DPI summary and plot.

plot(dpi.curve)

Plot DPI curve analysis results. Return a ggplot object.

Usage

# S3 method for dpi
summary(object, ...)

# S3 method for summary.dpi print(x, digits = 3, ...)

# S3 method for dpi plot(x, file = NULL, width = 6, height = 4, dpi = 500, ...)

# S3 method for dpi print(x, digits = 3, ...)

# S3 method for dpi.curve plot(x, file = NULL, width = 6, height = 4, dpi = 500, ...)

Arguments

object

Object (class dpi) returned from DPI().

...

Other arguments (currently not used).

x

Object (class dpi or dpi.curve) returned from DPI() or DPI_curve().

digits

Number of decimal places. Defaults to 3.

file

File name of saved plot (".png" or ".pdf").

width, height

Width and height (in inches) of saved plot. Defaults to 6 and 4.

dpi

Dots per inch (figure resolution). Defaults to 500.