plotBenchmarkPerformance | R Documentation |
Create a simple performance plot, showing the scaled performance of an algorithm over time (based on experiments with different objective functions).
plotBenchmarkPerformance(data, names = NULL)
data |
a list of data frames created with |
names |
a character vector. Each represents a name for the underlying objective function of the |
a ggplot instance
## create data by running optim L-BFGS-B with two objective functions
lower <- -1
upper <- 1
require(nloptr)
expr <- expression(
res <- lbfgs(x0=runif(1,lower,upper),fn = fnlog,
lower=lower,upper=upper)
)
res1 <- loggedExperiment(expr, function(x)x^2, 1:10)
res2 <- loggedExperiment(expr, function(x)sqrt(abs(x)), 1:10)
## create the plot from the results
p <- plotBenchmarkPerformance(list(res1,res2),names=c("square","root"))
print(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.