Skip to content

Commit

Permalink
Version 1.0.4_minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKim5 committed Jul 16, 2021
1 parent 3be15fd commit 9d10abd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions R/NMDS.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Automatically save NMDS plots for the selected dimension metrics
#'
#' @param Data
#' @param methods #methods<- c("manhattan", "euclidean", "canberra", "clark", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "raup", "binomial", "mahalanobis", "chisq","chord") #can be any distance c["manhattan", "euclidean", "canberra", "clark", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "mountford", "raup", "binomial", "chao", "cao", "mahalanobis", "chisq","chord"]
#' @param Data
#' @param methods #methods<- c("manhattan", "euclidean", "canberra", "clark", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "raup", "binomial", "mahalanobis", "chisq","chord")
#' @param color colors used for ggplots.color=c("#FF3300","#FF6600","#FFCC00","#99CC00","#0066CC","#660099")
#' @param legend_position legend position "none","left","right","bottom","top"
#' @param fig_width figure size
Expand All @@ -10,7 +10,7 @@
#' @return NMDS plot
#' @export
#'
#' @examples data(Data)
#' @examples data(Data)
#' NMDS(Data,methods = c("euclidian","manhattan","bray"))

NMDS<-function(Data,
Expand Down Expand Up @@ -39,8 +39,8 @@ NMDS<-function(Data,
by = NULL,
data = x_y_coord_G)[["Pr(>F)"]][1] #Model P_Value
ggplot2::ggplot() +
ggplot2::geom_point(data = x_y_coord_G, ggplot2::aes(x = NMDS1, y = NMDS2,
color = Group), size = 3)+
ggplot2::geom_point(data = x_y_coord_G, ggplot2::aes(x = NMDS1, y = NMDS2,
color = Group), size = 3)+
ggplot2::theme_minimal() +
ggplot2::scale_color_manual(values = color)+
ggplot2::theme(plot.title=ggplot2::element_text(size=10,
Expand All @@ -63,4 +63,4 @@ NMDS<-function(Data,
path=paste0(getwd(),"/NMDS"),
height = fig_height,
width = fig_width,units = "cm")
}}
}}
6 changes: 4 additions & 2 deletions man/LMSstat-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ The package includes
* PERMANOVA

* ROC and AROC

* NMDS
}
\details{
\tabular{ll}{
Package: \tab LMSstat\cr
Type: \tab Package\cr
Version: \tab 1.0.3\cr
Date: \tab 2021-07-12\cr
Version: \tab 1.0.4\cr
Date: \tab 2021-07-16\cr
License: \tab MIT License\cr
}
}
Expand Down
6 changes: 2 additions & 4 deletions man/NMDS.Rd

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

0 comments on commit 9d10abd

Please sign in to comment.