print.plot_mztia function

Print a plot of MZTIA estimation

Print a plot of MZTIA estimation

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

## 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.

Returns

The ‘plot_mztia’ object passed to the x

parameter is returned invisibly.

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.

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)

See Also

mztia, plot_mztia, ggplot(), methods.

  • Maintainer: Pius Dahinden
  • License: GPL (>= 2)
  • Last published: 2025-03-24