Skip to contents

The analysis functions of DiallelAnalysisR return the named list they have always returned, now with the class c("da_<analysis>", "da_result", "list"). Components are read as before (x$ANOVA, x[["Means"]]); the methods below print, summarise and plot the result and turn any component into a data.table.

Usage

# S3 method for class 'da_result'
print(x, digits = 4L, ...)

# S3 method for class 'da_result'
summary(object, ...)

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

# S3 method for class 'da_result'
format(x, ...)

# S3 method for class 'da_result'
as.data.table(x, keep.rownames = FALSE, ..., component = 1L)

# S3 method for class 'da_result'
as.data.frame(x, row.names = NULL, optional = FALSE, ..., component = 1L)

# S3 method for class 'da_result'
plot(x, ...)

Arguments

x, object

a DiallelAnalysisR result.

digits

significant digits of printed numbers (default 4).

...

passed on (to print() of the components, or to the plotting function for plot()).

keep.rownames, row.names, optional

as in data.table::as.data.table() and as.data.frame(); row names of a matrix or data frame component are always kept, in a first column term.

component

name or number of the component to convert (default: the first one).

Value

print() returns x invisibly; summary() an object of class summary.da_result; format() a character string; as.data.table() and as.data.frame() the chosen component as a table; plot() a ggplot object.

Author

Muhammad Yaseen (myaseen208@gmail.com)