Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R/Accumulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ autoplot.AccumCurve <-
function(object, ..., main = NULL,
xlab = "Sample Size", ylab = NULL,
ShadeColor = "grey75", alpha = 0.3, BorderColor = "red",
col = ggplot2::GeomLine$default_aes$colour,
lty = ggplot2::GeomLine$default_aes$linetype,
lwd = ggplot2::GeomLine$default_aes$size)
col = "black",
lty = 1,
lwd = 0.5)
{
thePlot <- ggplot2::ggplot(as.data.frame.list(object), ggplot2::aes(x=.data$x, y=.data$y))
if (!(is.null(object$high) | is.null(object$low))) {
Expand Down
6 changes: 3 additions & 3 deletions R/CommunityProfile.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ autoplot.CommunityProfile <-
function(object, ..., main = NULL,
xlab = "Order of Diversity", ylab = "Diversity",
ShadeColor = "grey75", alpha = 0.3, BorderColor = "red",
col = ggplot2::GeomLine$default_aes$colour,
lty = ggplot2::GeomLine$default_aes$linetype,
lwd = ggplot2::GeomLine$default_aes$size)
col = "black",
lty = 1,
lwd = 0.5)
{
thePlot <- ggplot2::ggplot(as.data.frame.list(object), ggplot2::aes(x=.data$x, y=.data$y))
if (!(is.null(object$high) | is.null(object$low))) {
Expand Down
4 changes: 2 additions & 2 deletions R/DivPart.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ function (x, ...)


autoplot.DivPart <-
function (object, col = ggplot2::GeomRect$default_aes$fill,
border = ggplot2::GeomRect$default_aes$colour, ...)
function (object, col = "grey35",
border = NA, ...)
{
thePlot <- ggplot2::ggplot() +
ggplot2::geom_rect(ggplot2::aes(xmin=.data$xmin, ymin=.data$ymin, xmax=.data$xmax, ymax=.data$ymax),
Expand Down
6 changes: 3 additions & 3 deletions R/DivProfile.R
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ function (x, ..., main = NULL, xlab = "Order of Diversity", ylab = NULL, Which =
autoplot.DivProfile <-
function (object, ..., main = NULL, xlab = "Order of Diversity", ylab = NULL, Which = "All",
ShadeColor = "grey75", alpha = 0.3, BorderColor = "red", labels = NULL, font.label = list(size=11, face="plain"),
col = ggplot2::GeomLine$default_aes$colour,
lty = ggplot2::GeomLine$default_aes$linetype,
lwd = ggplot2::GeomLine$default_aes$size)
col = "black",
lty = 1,
lwd = 0.5)
{
if (Which == "All" | (Which == "Alpha" & is.null(main))) main <- "Total Alpha Diversity"
if (Which == "All" | (Which == "Alpha" & is.null(ylab))) ylab <- expression(paste(alpha, " diversity"))
Expand Down
4 changes: 2 additions & 2 deletions R/MCdiversity.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function (x, ...)


autoplot.MCdiversity <-
function (object, col = ggplot2::GeomCol$default_aes$fill,
border = ggplot2::GeomCol$default_aes$colour, ...)
function (object, col = "grey35",
border = NA, ...)
{
theData <- data.frame(x=c(names(object$Communities), "", "Metacommunity"), y=c(object$Communities, 0, object$Total))
# Factors to keep the order of bars (avoid sort by name)
Expand Down
4 changes: 2 additions & 2 deletions R/MCentropy.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function (x, ...)


autoplot.MCentropy <-
function (object, col = ggplot2::GeomCol$default_aes$fill,
border = ggplot2::GeomCol$default_aes$colour, ...)
function (object, col = "grey35",
border = NA, ...)
{
theData <- data.frame(x=c(names(object$Communities), "", "Metacommunity"), y=c(object$Communities, 0, object$Total))
# Factors to keep the order of bars (avoid sort by name)
Expand Down
6 changes: 3 additions & 3 deletions R/PhyloValue.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function (x, xlab = expression(italic("T")), ylab = NULL, main = NULL, ...)

autoplot.PhyloValue <-
function (object, xlab = expression(italic("T")), ylab = NULL, main = NULL,
col = ggplot2::GeomLine$default_aes$colour,
lty = ggplot2::GeomLine$default_aes$linetype,
lwd = ggplot2::GeomLine$default_aes$size,
col = "black",
lty = 1,
lwd = 0.5,
...)
{
Entity <- ""
Expand Down
6 changes: 3 additions & 3 deletions R/SpeciesDistribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ function(x, ..., Distribution = NULL,
autoplot.SpeciesDistribution <-
function(object, ..., Distribution = NULL,
ylog = TRUE, main = NULL, xlab = "Rank", ylab = NULL,
pch = ggplot2::GeomPoint$default_aes$shape,
col = ggplot2::GeomPoint$default_aes$colour,
cex = ggplot2::GeomPoint$default_aes$size)
pch = 19,
col = "black",
cex = 1.5)
{
# Eliminate zeros and sort
Ns <- sort(object[object > 0], decreasing = TRUE)
Expand Down
6 changes: 3 additions & 3 deletions man/Accumulation.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ DivAC(Ns, q = 0, n.seq = seq_len(sum(Ns)), PCorrection="Chao2015", Unveiling="ge
\method{autoplot}{AccumCurve}(object, ..., main = NULL,
xlab = "Sample Size", ylab = NULL,
ShadeColor = "grey75", alpha = 0.3, BorderColor = "red",
col = ggplot2::GeomLine$default_aes$colour,
lty = ggplot2::GeomLine$default_aes$linetype,
lwd = ggplot2::GeomLine$default_aes$size)
col = "black",
lty = 1,
lwd = 0.5)
}
\arguments{
\item{x}{
Expand Down
6 changes: 3 additions & 3 deletions man/CommunityProfile.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ is.CommunityProfile(x)
\method{autoplot}{CommunityProfile}(object, \dots, main = NULL,
xlab = "Order of Diversity", ylab = "Diversity",
ShadeColor = "grey75", alpha = 0.3, BorderColor = "red",
col = ggplot2::GeomLine$default_aes$colour,
lty = ggplot2::GeomLine$default_aes$linetype,
lwd = ggplot2::GeomLine$default_aes$size)
col = "black",
lty = 1,
lwd = 0.5)
CEnvelope(Profile, LineWidth = 2, ShadeColor = "grey75", BorderColor = "red", \dots)
}
\arguments{
Expand Down
4 changes: 2 additions & 2 deletions man/DivPart.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ DivPart(q = 1, MC, Biased = TRUE, Correction = "Best", Tree = NULL,
Normalize = TRUE, Z = NULL, CheckArguments = TRUE)
is.DivPart(x)
\method{plot}{DivPart}(x, \dots)
\method{autoplot}{DivPart}(object, col = ggplot2::GeomRect$default_aes$fill,
border = ggplot2::GeomRect$default_aes$colour, \dots)
\method{autoplot}{DivPart}(object, col = "grey35",
border = NA, \dots)
\method{summary}{DivPart}(object, \dots)
}
\arguments{
Expand Down
6 changes: 3 additions & 3 deletions man/DivProfile.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ is.DivProfile(x)
\method{autoplot}{DivProfile}(object, \dots, main = NULL, xlab = "Order of Diversity",
ylab = NULL, Which = "All", ShadeColor = "grey75", alpha = 0.3, BorderColor = "red",
labels = NULL, font.label = list(size=11, face="plain"),
col = ggplot2::GeomLine$default_aes$colour,
lty = ggplot2::GeomLine$default_aes$linetype,
lwd = ggplot2::GeomLine$default_aes$size)
col = "black",
lty = 1,
lwd = 0.5)
\method{summary}{DivProfile}(object, \dots)
}
\arguments{
Expand Down
4 changes: 2 additions & 2 deletions man/MCdiversity.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
\usage{
is.MCdiversity(x)
\method{plot}{MCdiversity}(x, \dots)
\method{autoplot}{MCdiversity}(object, col = ggplot2::GeomCol$default_aes$fill,
border = ggplot2::GeomCol$default_aes$colour, \dots)
\method{autoplot}{MCdiversity}(object, col = "grey35",
border = NA, \dots)
\method{summary}{MCdiversity}(object, \dots)
}
\arguments{
Expand Down
4 changes: 2 additions & 2 deletions man/MCentropy.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
\usage{
is.MCentropy(x)
\method{plot}{MCentropy}(x, \dots)
\method{autoplot}{MCentropy}(object, col = ggplot2::GeomCol$default_aes$fill,
border = ggplot2::GeomCol$default_aes$colour, \dots)
\method{autoplot}{MCentropy}(object, col = "grey35",
border = NA, \dots)
\method{summary}{MCentropy}(object, \dots)
}
\arguments{
Expand Down
6 changes: 3 additions & 3 deletions man/PhyloValue.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
\usage{
is.PhyloValue(x)
\method{autoplot}{PhyloValue}(object, xlab = expression(italic("T")), ylab = NULL, main = NULL,
col = ggplot2::GeomLine$default_aes$colour,
lty = ggplot2::GeomLine$default_aes$linetype,
lwd = ggplot2::GeomLine$default_aes$size,
col = "black",
lty = 1,
lwd = 0.5,
\dots)
\method{plot}{PhyloValue}(x, xlab = expression(italic("T")), ylab = NULL, main = NULL, \dots)
\method{summary}{PhyloValue}(object, \dots)
Expand Down
6 changes: 3 additions & 3 deletions man/SpeciesDistribution.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ as.SpeciesDistribution(x, \dots)
\method{as.SpeciesDistribution}{numeric}(x, \dots)
\method{autoplot}{SpeciesDistribution}(object, \dots, Distribution = NULL,
ylog = TRUE, main = NULL, xlab = "Rank", ylab = NULL,
pch = ggplot2::GeomPoint$default_aes$shape,
col = ggplot2::GeomPoint$default_aes$colour,
cex = ggplot2::GeomPoint$default_aes$size)
pch = 19,
col = "black",
cex = 1.5)
\method{plot}{SpeciesDistribution}(x, \dots, Distribution = NULL,
type = "b", log = "y", main = NULL, xlab = "Rank", ylab = NULL)
is.SpeciesDistribution(x)
Expand Down