plotDist: Distribution Plot

Description Usage Arguments Details Value Examples

View source: R/plotDist.R

Description

plotDist Plots a distribution plot of the result of recDist.

Usage

1
2
plotDist(data, xlabel = "x label", ylabel = "y label",
  title = "Title", color = "darkblue")

Arguments

data

result of recDist

xlabel

x label title of graph (defaults to "x label")

ylabel

y label title of graph (defaults to "y label")

title

title of graph (defaults to "Title")

color

color of points (defaults to "darkblue")

Details

This function is a visualization tools for the result of recDist. It allows the user to see how often subproblems are called.

Value

the result of x multiplied by y

Examples

1
2
3
capture.output(recursiveCalls(fib,10), file = "output.txt")
fibResult <- saveCalls("output.txt")
plotDist(recDist(fibResult))

cfrusso/ARR documentation built on May 28, 2019, 11:04 p.m.