# plot.Tinflex: Plot Tinflex Generator Objects In Tinflex: A Universal Non-Uniform Random Number Generator

## Description

Plotting methods for generator objects of classes `"Tinflex"` and `"TinflexC"`. The plot shows the (transformed) density, hat and squeeze.

## Usage

 ```1 2 3 4``` ```## S3 method for class 'Tinflex' plot(x, from, to, is.trans=FALSE, n=501, ...) ## S3 method for class 'TinflexC' plot(x, from, to, is.trans=FALSE, n=501, ...) ```

## Arguments

 `x` an object of class `"Tinflex"` or `"TinflexC"`. `from,to` the range over which the function will be plotted. (numeric) `is.trans` if `TRUE` then the transformed density and its hat and squeezes are plotted. (logical) `n` the number of x values at which (transformed) PDF to evaluate. (integer) `...` arguments to be passed to methods, such as graphical parameters (see `par`). In particular the following argument may be useful: `ylim`limit for the plot range: see `plot.window`. It has sensible defaults if omitted.

## Details

This is the `print` method for objects of class `"Tinflex"` or `"TinflexC"`. It plots the given density function (blue) in the domain (`from`,`to`) as well as hat function (red) and squeeze (green) of the acceptance-rejection algorithm. If `is.trans` is set to `TRUE`, then density function, hat and squeeze are plotted on the transformed scale. Notice that the latter only gives a sensible picture if parameter `cT` is the same for all intervals.

## Author(s)

Josef Leydold josef.leydold@wu.ac.at, Carsten Botts and Wolfgang HÃ¶rmann.

`plot`, `plot.function`. See `Tinflex.setup` for examples.