| print.plot_mztia | R Documentation |
This is a method for the function print() for objects of class
‘plot_mztia’.
## S3 method for class 'plot_mztia'
print(x, ...)
x |
An object of class ‘ |
... |
Further arguments passed to or from other methods or arguments
that can be passed down to the |
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.
The ‘plot_mztia’ object passed to the x
parameter is returned invisibly.
mztia, plot_mztia,
ggplot(), methods.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.