Skip to content

Commit

Permalink
new class name
Browse files Browse the repository at this point in the history
  • Loading branch information
reyzaguirre committed Jun 28, 2019
1 parent 076e1ec commit 5b5f382
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: st4gi
Type: Package
Title: Statistical tools for genetic improvement
Version: 2.2.11
Date: 2019-05-30
Version: 2.2.12
Date: 2019-06-28
Author: Raul Eyzaguirre
Maintainer: Raul Eyzaguirre <R.EYZAGUIRRE@CGIAR.ORG>
Description: Statistical tools for the analysis of experimental data for crop
Expand Down
4 changes: 2 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by roxygen2: do not edit by hand

S3method(plot,ammi)
S3method(plot,tai)
S3method(plot,st4gi_ammi)
S3method(plot,st4gi_tai)
export(aj.w)
export(ammi)
export(ammi.gxe)
Expand Down
2 changes: 1 addition & 1 deletion R/ammi_gxe.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ ammi.gxe <- function(int.mean, trait.name = NULL, nrep = NULL, rdf = NULL,
Interaction_effects = int.eff, PC_values_genotypes = PC.geno,
PC_values_environments = PC.env, Contribution_PCs = tablaPC)

class(output) <- "ammi"
class(output) <- "st4gi_ammi"
invisible(output)

}
6 changes: 3 additions & 3 deletions R/plot_ammi.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#' @importFrom graphics abline text
#' @export

plot.ammi <- function(x, bp.type = 2, bp1.type = c("effects", "means"),
graph.type = c("base", "ggplot"),
color = c("darkorange", "black", "gray"), ...) {
plot.st4gi_ammi <- function(x, bp.type = 2, bp1.type = c("effects", "means"),
graph.type = c("base", "ggplot"),
color = c("darkorange", "black", "gray"), ...) {

# match arguments

Expand Down
4 changes: 2 additions & 2 deletions R/plot_tai.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#' @importFrom stats qf qt
#' @export

plot.tai <- function(x, conf = 0.95, graph.type = c("base", "ggplot"),
color = c("darkorange", "black", "gray"), ...) {
plot.st4gi_tai <- function(x, conf = 0.95, graph.type = c("base", "ggplot"),
color = c("darkorange", "black", "gray"), ...) {

# match arguments

Expand Down
2 changes: 1 addition & 1 deletion R/tai.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ tai <- function(trait, geno, env, rep, dfr, maxp = 0.1) {

output <- list(Trait = trait, Tai_values = cbind(alpha, lambda), ANOVA = at, lc = lc)

class(output) <- "tai"
class(output) <- "st4gi_tai"
invisible(output)

}
10 changes: 5 additions & 5 deletions man/plot.ammi.Rd → man/plot.st4gi_ammi.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/plot.tai.Rd → man/plot.st4gi_tai.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b5f382

Please sign in to comment.