plot method for objects inheriting from class "anscombe".
Arguments
- x
an object of class
'anscombe', a result of a call toanscombiseormimic.- input
A logical scalar. Should the old, input data, that is, the Anscombe's dataset chosen for
anscombiseor the argumentx2tomimic, be plotted? Ifold = FALSEthen the new, output data are plotted. Ifold = TRUEthen the old data are plotted.- stats
A logical scalar. Should the sample summary statistics
n,means,variancesandcorrelationbe added to the plot?- digits
An integer. The argument
digitspassed tosignifto round the values of the statistics before adding them to the plot.- legend_args
A list of arguments to be passed to
legendwhenstats = TRUE, especiallylegend_args$xto control the position of the legend.- ...
Further arguments to be passed to
plot
Details
This function is only applicable in 2 dimensions, that is,
when length(attr(x, "new_stats")$means) = 2.
Examples
See the examples in anscombise and mimic.
See also
anscombise and mimic.