print.plot_mztia {disprofas}R Documentation

Print a plot of MZTIA estimation

Description

This is a method for the function print() for objects of class ‘plot_mztia’.

Usage

## S3 method for class 'plot_mztia'
print(x, ...)

Arguments

x

An object of class ‘plot_mztia’ returned by the plot_mztia() function.

...

Further arguments passed to or from other methods or arguments that can be passed down to the plot.boot() function.

Details

The element Graph of the ‘plot_mztia’ object that is returned by the function plot_mztia() is an object of class ‘ggplot’, generated by the function ggplot() from the ‘ggplot2’ package. Thus, the corresponding plot method is used for plotting. Arguments to the ggplot() function can be passed via the ... parameter.

Value

The ‘plot_mztia’ object passed to the x parameter is returned invisibly.

See Also

mztia, plot_mztia, ggplot(), methods.

Examples

# Assessment of data by aid of the mztia() function
res1 <- mztia(data = dip1, shape = "wide", tcol = 3:10, grouping = "type",
              reference = "R", cap = FALSE)

# The 'mztia' object can be passed on to the plot_mztia() function. This
# function does not produce any output but returns a 'plot_mztia' object.
## Not run: 
  gg1 <- plot_mztia(res1)
  gg2 <- print(gg1)

  # The print() function returns the 'plot_mztia' object invisibly.
  class(gg1)
  class(gg2)

## End(Not run)

[Package disprofas version 0.2.0 Index]