Skip to content

Commit

Permalink
fix warnings regarding plots
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbossek committed Apr 10, 2015
1 parent 16c9165 commit 66c4c36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion R/plot.autoplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ autoplot2DNumeric = function(x, show.optimum, render.contours, render.levels, us
brewer.div = colorRampPalette(brewer.pal(11, "Spectral"), interpolate = "spline")

# plot
print(head(data))
pl = ggplot(data = data, mapping = aes_string(x = par.names[1], y = par.names[2]))
if (render.levels) {
pl = pl + geom_tile(aes_string(fill = "y"))
Expand Down
2 changes: 1 addition & 1 deletion R/plot.plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ plot1DNumeric = function(x,
#' @param render.contours [\code{logical(1)}]\cr
#' Render contours? Default is \code{TRUE}.
#' @param n.samples [\code{integer(1)}]\cr
#' Number of locations per dimension to be sampled. Default is 500.
#' Number of locations per dimension to be sampled. Default is 100.
#' @param ... [any]\cr
#' Further paramerters passed to \code{image} respectively \code{contour} function.
#' @return Nothing
Expand Down
4 changes: 2 additions & 2 deletions man/plot2DNumeric.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
\title{Plot a two-dimensional numeric function.}
\usage{
plot2DNumeric(x, show.optimum = FALSE, render.levels = FALSE,
render.contours = TRUE, n.samples = 500L, ...)
render.contours = TRUE, n.samples = 100L, ...)
}
\arguments{
\item{x}{[\code{smoof_function}]\cr
Expand All @@ -23,7 +23,7 @@ Show a level-plot? Default is \code{FALSE}.}
Render contours? Default is \code{TRUE}.}

\item{n.samples}{[\code{integer(1)}]\cr
Number of locations per dimension to be sampled. Default is 500.}
Number of locations per dimension to be sampled. Default is 100.}

\item{...}{[any]\cr
Further paramerters passed to \code{image} respectively \code{contour} function.}
Expand Down

0 comments on commit 66c4c36

Please sign in to comment.