This is a method for the function plot() for objects of class ‘plot_mztia’ .
## S3 method for class 'plot_mztia'plot(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() functionres1 <- 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 <- plot(gg1)# The plot() function returns the 'plot_mztia' object invisibly. class(gg1) class(gg2)## End(Not run)